]> Dogcows Code - chaz/openbox/commitdiff
fixed the geometry window not getting the proper pixmap. This was caused by using...
authorDana Jansens <danakj@orodu.net>
Sat, 25 May 2002 15:46:08 +0000 (15:46 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 25 May 2002 15:46:08 +0000 (15:46 +0000)
src/Screen.cc

index f793c91e1adcde78f8558c438ad4c0ba6e721f9d..27b494af1cb34a8d3e77f1acc085b33dfe0c8222 100644 (file)
@@ -206,6 +206,10 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
 
   BTexture* texture = &(resource.wstyle.l_focus);
   geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
+  if (geom_pixmap == ParentRelative) {
+    texture = &(resource.wstyle.t_focus);
+    geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
+  }
   if (! geom_pixmap)
     XSetWindowBackground(blackbox->getXDisplay(), geom_window,
                          texture->color().pixel());
@@ -384,6 +388,10 @@ void BScreen::reconfigure(void) {
 
   BTexture* texture = &(resource.wstyle.l_focus);
   geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
+  if (geom_pixmap == ParentRelative) {
+    texture = &(resource.wstyle.t_focus);
+    geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
+  }
   if (! geom_pixmap)
     XSetWindowBackground(blackbox->getXDisplay(), geom_window,
                          texture->color().pixel());
This page took 0.025253 seconds and 4 git commands to generate.