summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-12 18:29:35 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-12 18:29:35 +0100
commit95705472836a11c7789107d43f4091e4ff2657bf (patch)
tree2700006b61bf69f78e1ed20028bbaa822e3b9be3
parentaa54695f796cb054eaa3472d1df7f6d99572edb5 (diff)
downloadshelf-95705472836a11c7789107d43f4091e4ff2657bf.tar.gz
shelf-95705472836a11c7789107d43f4091e4ff2657bf.tar.bz2
Minor cleanup.
-rw-r--r--shelf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shelf.c b/shelf.c
index 45962fa..1791e01 100644
--- a/shelf.c
+++ b/shelf.c
@@ -300,6 +300,7 @@ static void
shelfAdjustIPW (CompWindow *w)
{
XWindowChanges xwc;
+ Display *dpy = w->screen->display->display;
float width, height;
SHELF_WINDOW (w);
@@ -321,11 +322,11 @@ shelfAdjustIPW (CompWindow *w)
xwc.stack_mode = Below;
xwc.sibling = w->id;
- XConfigureWindow (w->screen->display->display, sw->info->ipw,
+ XConfigureWindow (dpy, sw->info->ipw,
CWSibling | CWStackMode | CWX | CWY | CWWidth | CWHeight,
&xwc);
- XMapWindow (w->screen->display->display, sw->info->ipw);
+ XMapWindow (dpy, sw->info->ipw);
}
static void
@@ -419,7 +420,7 @@ shelfScaleWindow (CompWindow *w,
sw->targetScale = SHELF_MIN_SIZE / (float) w->width;
if (shelfHandleShelfInfo (w))
- shelfAdjustIPW (w);
+ shelfAdjustIPW (w);
damageScreen (w->screen);
}