Skip to content

Commit

Permalink
minor touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
shaleh committed May 9, 2002
1 parent 40a4f3c commit 8e1fd62
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Screen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,7 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
mask, &attrib);
geom_visible = False;

BTexture* texture;
if (resource.wstyle.l_focus.texture() & BTexture::Parent_Relative)
texture = &(resource.wstyle.t_focus);
else
texture = &(resource.wstyle.l_focus);

BTexture* texture = &(resource.wstyle.l_focus);
geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
if (! geom_pixmap)
XSetWindowBackground(blackbox->getXDisplay(), geom_window,
Expand Down Expand Up @@ -399,12 +394,7 @@ void BScreen::reconfigure(void) {
geom_w += (resource.bevel_width * 2);
geom_h += (resource.bevel_width * 2);

BTexture* texture;
if (resource.wstyle.l_focus.texture() & BTexture::Parent_Relative)
texture = &(resource.wstyle.t_focus);
else
texture = &(resource.wstyle.l_focus);

BTexture* texture = &(resource.wstyle.l_focus);
geom_pixmap = texture->render(geom_w, geom_h, geom_pixmap);
if (! geom_pixmap)
XSetWindowBackground(blackbox->getXDisplay(), geom_window,
Expand Down

0 comments on commit 8e1fd62

Please sign in to comment.