steamcompmgr: Fix X's idea of interactive focus

Always update X's idea of focus, but still dirty
the it being outdated so we can resolve that globally later.

Only affecting X and not the WL idea of focus here,
we always want to think the window is focused.
but our real presenting focus and input focus can be elsewhere.
This commit is contained in:
Joshua Ashton 2022-02-01 21:50:06 +00:00
parent a953bd276e
commit 55cb27fd15

View file

@ -2072,6 +2072,15 @@ found:;
out->focusWindow = focus;
else
out->outdatedInteractiveFocus = true;
// Always update X's idea of focus, but still dirty
// the it being outdated so we can resolve that globally later.
//
// Only affecting X and not the WL idea of focus here,
// we always want to think the window is focused.
// but our real presenting focus and input focus can be elsewhere.
if ( !globalFocus )
out->focusWindow = focus;
}
out->overrideWindow = override_focus;