all repos — openbox @ b7dba88a0addfa232781427891b615a6bc3147c6

openbox fork - make it a bit more like ryudo

try make drawing work better but its busted
Dana Jansens danakj@orodu.net
commit

b7dba88a0addfa232781427891b615a6bc3147c6

parent

b3822fcfb19bfdcf775fbc6ff2f89a817d16cb4c

3 files changed, 10 insertions(+), 3 deletions(-)

jump to
M otk/button.ccotk/button.cc

@@ -65,4 +65,10 @@ } else

OtkFocusWidget::update(); } +void OtkButton::expose(const XExposeEvent &e) +{ + _dirty = true; + OtkFocusWidget::expose(e); +} + }
M otk/button.hhotk/button.hh

@@ -33,14 +33,15 @@ inline bool isPressed(void) const { return _pressed; }

void press(void); void release(void); - void update(void); + virtual void update(void); + virtual void expose(const XExposeEvent &e); private: std::string _text; //OtkPixmap _pixmap; bool _pressed; -// bool _dirty; + bool _dirty; BTexture *_pressed_focus_tx; BTexture *_pressed_unfocus_tx;
M otk/widget.hhotk/widget.hh

@@ -27,7 +27,7 @@ virtual ~OtkWidget();

virtual void update(void); - void expose(const XExposeEvent &e); + virtual void expose(const XExposeEvent &e); inline Window getWindow(void) const { return _window; } inline const OtkWidget *getParent(void) const { return _parent; }