diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-06-07 13:53:50 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-06-07 13:53:50 +0100 |
| commit | f1d4ec42e9e7552862016a44437977b4c86116ac (patch) | |
| tree | 51a5520813b0d53e32b7b71469024905764de395 /src | |
| parent | ac68ac42bf84b0ff3fc669708708de3b20549d3b (diff) | |
fix clicking inside window after reload config not working
There was still an XGrabButton(dpy, Button1, 0, root, ...) in the reload
config which disables the user from clicking anything inside the windows
so I removed that
Diffstat (limited to 'src')
| -rw-r--r-- | src/sxwm.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -1403,17 +1403,14 @@ void reload_config(void) } grab_keys(); XUngrabButton(dpy, AnyButton, AnyModifier, root); - - XGrabButton(dpy, Button1, 0, root, True, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, GrabModeAsync, - GrabModeAsync, None, None); XGrabButton(dpy, Button1, user_config.modkey, root, True, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None); XGrabButton(dpy, Button1, user_config.modkey | ShiftMask, root, True, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None); XGrabButton(dpy, Button3, user_config.modkey, root, True, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None); - XSync(dpy, False); + XSync(dpy, False); tile(); update_borders(); } @@ -1561,13 +1558,6 @@ void setup(void) StructureNotifyMask | SubstructureRedirectMask | SubstructureNotifyMask | KeyPressMask | PropertyChangeMask); - /* this is to grab the buttons for: - * focusing, - * moving, - * swapping, - * resizing - * windows in that order. - */ XGrabButton(dpy, Button1, user_config.modkey, root, True, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None); XGrabButton(dpy, Button1, user_config.modkey | ShiftMask, root, True, |
