aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Müller2022-01-17 17:45:18 +0100
committerWolfgang Müller2022-01-17 17:45:18 +0100
commitdb0f56a25ea0419e03927e1939af895f5a949137 (patch)
treeadadf773adb5545a40112c999d72944cb18ca39a
parentf4c384684af5bde1397e377e10e2b7e7ffd35ae4 (diff)
downloadcwm-db0f56a25ea0419e03927e1939af895f5a949137.tar.gz
Do not warp mouse to windows marked active by EWMH
As discussed a couple of times [1] [2] on the openbsd-* mailing lists, modal dialogs that are marked as active through EWMH will have cwm warp the mouse back to them once it leaves the constraints of the window. For us this is particularly a problem with dialogs created by QT (such as the settings dialog in Quassel). Since no real solution was ever posted on the mailing lists, just disable the warping behaviour for now. This should not have any detrimental impact other than for the dialogs that are "misbehaving" right now. [1] https://marc.info/?l=openbsd-misc&m=155542694605428&w=2 [2] https://marc.info/?l=openbsd-ports&m=155508625010715&w=2
-rw-r--r--xevents.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 5b5a0af..12fb72b 100644
--- a/xevents.c
+++ b/xevents.c
@@ -401,7 +401,6 @@ xev_handle_clientmessage(XEvent *ee)
if ((old_cc = client_current(NULL)) != NULL)
client_ptr_save(old_cc);
client_show(cc);
- client_ptr_warp(cc);
}
} else if (e->message_type == ewmh[_NET_WM_DESKTOP]) {
if ((cc = client_find(e->window)) != NULL) {