]> Dogcows Code - chaz/openbox/commitdiff
<shrug>
authorDana Jansens <danakj@orodu.net>
Mon, 2 Dec 2002 20:50:59 +0000 (20:50 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 2 Dec 2002 20:50:59 +0000 (20:50 +0000)
src/frame.cc

index bb8a74f57064a9fbce6be05d034c7158fba71a4c..2a42327ad1dde5722a33e0620bbb63bc24e22b80 100644 (file)
@@ -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
This page took 0.02356 seconds and 4 git commands to generate.