steamcompmgr: Use overlay's ctx rather than root ctx

Makes more sense when reading
This commit is contained in:
Joshua Ashton 2022-01-10 23:13:38 +00:00 committed by Joshie
parent 4eda19aa69
commit 80101e1932

View file

@ -2205,7 +2205,7 @@ found:
if (global_focus.overlayWindow && global_focus.overlayWindow->inputFocusMode)
{
// If we have an overlay, pick our cursor from there instead.
global_focus.cursor = root_ctx->cursor.get();
global_focus.cursor = global_focus.overlayWindow->ctx->cursor.get();
global_focus.inputFocusWindow = global_focus.overlayWindow;
}
else if (global_focus.overrideWindow)