all repos — openbox @ 0c7e8e4011fad887d42320b269c638369eebcb5e

openbox fork - make it a bit more like ryudo

fixed the geometry window not getting the proper pixmap.  This was caused by using a style with the window.label.focus set to parentrelative.  The window label's parent is the title bar but the geometry window's parent is root.  The code now detects the parentrelative and tries to use the window.title as intended.
Dana Jansens danakj@orodu.net
commit

0c7e8e4011fad887d42320b269c638369eebcb5e

parent

c04cb76409820b3fa7543a49d21521907d1c9377

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -206,6 +206,10 @@ geom_visible = False;

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 @@ geom_h += (resource.bevel_width * 2);

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());