diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-05 17:06:12 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-14 19:41:48 -0700 |
commit | 4c0ec19811a6192ae8c3739bd9caff7d91bb725f (patch) | |
tree | 026b567b8fb83ffdfa2c31c9113c183396b61b4b /src/context.c | |
parent | 4dc9319239a172eb9f36ca57ea539a4a28edb50f (diff) |
vwm: utilize vwm_xserver_t, minor refactor
Diffstat (limited to 'src/context.c')
-rw-r--r-- | src/context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context.c b/src/context.c index cede8a9..70494cf 100644 --- a/src/context.c +++ b/src/context.c @@ -41,7 +41,7 @@ int vwm_context_focus(vwm_t *vwm, vwm_context_t desired_context) VWM_TRACE("unmapping shelf window \"%s\"", vwm->focused_shelf->xwindow->name); vwm_win_unmap(vwm, vwm->focused_shelf); - XFlush(vwm->display); /* for a more responsive feel */ + XFlush(VWM_XDISPLAY(vwm)); /* for a more responsive feel */ /* map the focused desktop, from the top of the stack down */ list_for_each_entry_prev(xwin, &vwm->xwindows, xwindows) { @@ -54,7 +54,7 @@ int vwm_context_focus(vwm_t *vwm, vwm_context_t desired_context) if (vwm->focused_desktop->focused_window) { VWM_TRACE("Focusing \"%s\"", vwm->focused_desktop->focused_window->xwindow->name); - XSetInputFocus(vwm->display, vwm->focused_desktop->focused_window->xwindow->id, RevertToPointerRoot, CurrentTime); + XSetInputFocus(VWM_XDISPLAY(vwm), vwm->focused_desktop->focused_window->xwindow->id, RevertToPointerRoot, CurrentTime); } vwm->focused_context = VWM_CONTEXT_DESKTOP; @@ -77,7 +77,7 @@ int vwm_context_focus(vwm_t *vwm, vwm_context_t desired_context) } } - XFlush(vwm->display); /* for a more responsive feel */ + XFlush(VWM_XDISPLAY(vwm)); /* for a more responsive feel */ VWM_TRACE("Mapping shelf window \"%s\"", vwm->focused_shelf->xwindow->name); vwm_win_map(vwm, vwm->focused_shelf); |