[client] x11: don't override the focus state if no EWMH focus support

This commit is contained in:
Geoffrey McRae 2021-12-22 11:25:54 +11:00
parent 65948034dd
commit ad40ea4195

View File

@ -950,7 +950,7 @@ static int x11EventThread(void * unused)
focused = true; focused = true;
} }
if (x11.focused != focused) if (x11.ewmhHasFocusEvent && x11.focused != focused)
{ {
x11.focused = focused; x11.focused = focused;
app_handleFocusEvent(focused); app_handleFocusEvent(focused);