summaryrefslogtreecommitdiff
path: root/shelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'shelf.c')
-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);
}