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

This commit is contained in:
Geoffrey McRae committed 2021-12-22 11:25:54 +11:00
1 parent 65948034dd
commit ad40ea4195
1 file changed
+1 -1
+1 -1
View File
@@ -950,7 +950,7 @@ static int x11EventThread(void * unused)
focused = true;
}
if (x11.focused != focused)
if (x11.ewmhHasFocusEvent && x11.focused != focused)
{
x11.focused = focused;
app_handleFocusEvent(focused);