X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbackgroundwidget.hh;h=9d833b4c2f1e5de8a5d0cde2d0dd2d7215a5baae;hb=1c8090fa67994215f5e79cd9dd08f82110589d8a;hp=0cbfb3fa11b2c65cf88f7aeb6ab70d12c60e9f02;hpb=70eb03ad50e1a71fd64c8cb1ebabbff311850553;p=chaz%2Fopenbox diff --git a/src/backgroundwidget.hh b/src/backgroundwidget.hh index 0cbfb3fa..9d833b4c 100644 --- a/src/backgroundwidget.hh +++ b/src/backgroundwidget.hh @@ -2,14 +2,15 @@ #ifndef __obbackgroundwidget_hh #define __obbackgroundwidget_hh -#include "otk/focuswidget.hh" +#include "otk/widget.hh" #include "widget.hh" namespace ob { -class OBBackgroundWidget : public otk::OtkFocusWidget, public OBWidget +class OBBackgroundWidget : public otk::OtkWidget, public OBWidget { private: + void setTextures(); public: OBBackgroundWidget(otk::OtkWidget *parent, OBWidget::WidgetType type); @@ -18,6 +19,12 @@ public: virtual void setStyle(otk::Style *style); virtual void adjust(); + + virtual void focus(); + virtual void unfocus(); + + void grabButtons(bool grab); + virtual void buttonPressHandler(const XButtonEvent &e); }; }