diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-02 20:50:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-02 20:50:59 +0000 |
| commit | 1eb79b9a0d75f057a85d1a5d91658a3f96ae8152 (patch) | |
| tree | ecbde7cb1afa0f2e23c873be026c802c0c48a940 /src | |
| parent | fb3848450e649a05c0bed84a02bc9ab4e563b5d9 (diff) | |
<shrug>
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/frame.cc b/src/frame.cc index bb8a74f5..2a42327a 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -73,6 +73,11 @@ void OBFrame::setStyle(otk::Style *style) assert(style); otk::OtkWidget::setStyle(style); + // don't let grips change textures when they are pressed + _grip_left.setPressedFocusTexture(_grip_left.getTexture()); + _grip_left.setPressedUnfocusTexture(_grip_left.getUnfocusTexture()); + _grip_right.setPressedFocusTexture(_grip_right.getTexture()); + _grip_right.setPressedUnfocusTexture(_grip_right.getUnfocusTexture()); // if a style was previously set, then 'replace' is true, cause we're // replacing a style @@ -96,13 +101,6 @@ void OBFrame::setStyle(otk::Style *style) XSetWindowBorder(otk::OBDisplay::display, _handle.getWindow(), _style->getBorderColor()->pixel()); - // XXX: if (focused) - XSetWindowBackground(otk::OBDisplay::display, getWindow(), - _style->getFrameFocus()->color().pixel()); - // XXX: else - // XXX: XSetWindowBackground(otk::OBDisplay::display, _window, - // XXX: _style->getFrameUnfocus().color().pixel()); - // if !replace, then adjust() will get called after the client is grabbed! if (replace) adjust(); // size/position everything |
