Commit graph

9 commits

Author SHA1 Message Date
John Preston
f86d876eff Allow arbitrary window now+delayed activation. 2023-05-19 20:47:19 +04:00
Ilya Fedin
367859c684 Fix unused variable warning 2022-09-19 12:39:22 +04:00
Ilya Fedin
2dcad89d3c Call xcb_set_input_focus rather than setting X11BypassWindowManagerHint
Setting the hint has some side effects, unfortunately...
2022-09-17 18:40:42 +04:00
Ilya Fedin
4d2fc25d03 Fix handle capture in ActivateWindowDelayed 2022-09-07 16:13:59 +04:00
Ilya Fedin
d7c2185f5c Force ActivateWindowDelayed to use xcb_set_input_focus on X11 when activating a parent
There's logic in Qt that uses xcb_set_input_focus to focus parent windows as some X11 window managers ignore such focus requests leaving the parent activated, but without input focus. By the time delayed activation happens, current focus window may no more exist and the logic in Qt won't work. X11BypassWindowManagerHint says Qt it should use xcb_set_input_focus on X11 that asks X11 directly to set input focus to that window.
2022-09-07 07:51:38 +04:00
John Preston
214c5e8e22 Make PreventDelayedActivation more reliable. 2022-03-01 14:22:01 +03:00
John Preston
22feeea7dc Fix ActivateWindowDelayed to raise top-level window. 2021-06-23 10:40:47 +04:00
John Preston
b1d5ed4ab5 Always call raise() before activateWindow(). 2021-06-07 11:24:22 +04:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00