From 3190e636d8080bf7e7b411aec4a73496db5268b9 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 3 Jun 2025 01:19:43 +0100 Subject: remove hdl_enter --- src/sxwm.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src') 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; -- cgit v1.2.3