summaryrefslogtreecommitdiff
path: root/src/xevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xevent.c')
-rw-r--r--src/xevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xevent.c b/src/xevent.c
index 97c575b..e1b38e3 100644
--- a/src/xevent.c
+++ b/src/xevent.c
@@ -205,7 +205,7 @@ void vwm_xevent_handle_map_request(vwm_t *vwm, XMapRequestEvent *ev)
vwm_win_map(vwm, vwin);
/* XSetInputFocus() must to happen after XMapWindow(), so do it here. */
- if (vwm_win_focused(vwm) == vwin)
+ if (vwm_win_get_focused(vwm) == vwin)
XSetInputFocus(VWM_XDISPLAY(vwm), vwin->xwindow->id, RevertToPointerRoot, CurrentTime);
} else {
/* this is unexpected */
© All Rights Reserved