Skip to content
Commit de36aad2 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Apply "Accepts focus" window rule to WM_TAKE_FOCUS messages as well

Currently the window rule is not 100% effective because the "take focus"
message is not guarded. So depending on the input model of the X11
window, kwin can still activate a window even if it has a window rule
to force no focus.

workspace()->setShouldGetFocus() should be guarded too to help the focus
stealing prevention logic.

Technically though, forcing XSetInputFocus() or WM_TAKE_FOCUS if the
client doesn't advertise supporting them is finiky. But on the other
hand, the window rules are an advanced feature, so its assumed that the
user knows what they do.

(cherry picked from commit 3663e1ec)
parent 424ba7d0
Pipeline #589715 failed with stage
in 18 minutes and 23 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment