steamcompmgr: Fix on-screen check for override candidates

Fixes Apex Legends Origin signup via. Steam Overlay browser
This commit is contained in:
Joshua Ashton 2022-02-27 09:36:34 +00:00
parent 5b8f9e6a64
commit bfefe62933

View file

@ -2010,7 +2010,7 @@ static bool is_good_override_candidate( win *override, win* focus )
// Some Chrome/Edge dropdowns (ie. FH5 xbox login) will automatically close themselves if you
// focus them while they are meant to be offscreen (-1,-1 and 1x1) so check that the
// override's position is on-screen.
return win_is_override_redirect(override) && override != focus && override->a.x > 0 && override->a.y > 0;
return win_is_override_redirect(override) && override != focus && override->a.x >= 0 && override->a.y >= 0;
}
static bool