summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 36a033a..c969d2c 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -52,7 +52,6 @@ void hdl_config_ntf(XEvent *xev);
void hdl_config_req(XEvent *xev);
void hdl_dummy(XEvent *xev);
void hdl_destroy_ntf(XEvent *xev);
-void hdl_enter(XEvent *xev);
void hdl_keypress(XEvent *xev);
void hdl_map_req(XEvent *xev);
void hdl_motion(XEvent *xev);
@@ -598,23 +597,6 @@ void hdl_destroy_ntf(XEvent *xev)
}
}
-void hdl_enter(XEvent *xev)
-{
- if (drag_mode != DRAG_NONE) {
- return;
- }
-
- Window w = xev->xcrossing.window;
- for (Client *c = workspaces[current_ws]; c; c = c->next) {
- if (c->win == w) {
- focused = c;
- XSetInputFocus(dpy, w, RevertToPointerRoot, CurrentTime);
- update_borders();
- break;
- }
- }
-}
-
void hdl_keypress(XEvent *xev)
{
KeySym ks = XkbKeycodeToKeysym(dpy, xev->xkey.keycode, 0, 0);
@@ -1335,7 +1317,6 @@ void setup(void)
evtable[ConfigureNotify] = hdl_config_ntf;
evtable[ConfigureRequest] = hdl_config_req;
evtable[DestroyNotify] = hdl_destroy_ntf;
- evtable[EnterNotify] = hdl_enter;
evtable[KeyPress] = hdl_keypress;
evtable[MapRequest] = hdl_map_req;
evtable[MotionNotify] = hdl_motion;