From db0f56a25ea0419e03927e1939af895f5a949137 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Mon, 17 Jan 2022 17:45:18 +0100 Subject: 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 --- xevents.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xevents.c') 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) { -- cgit v1.2.3-2-gb3c3