mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-06 06:46:54 -04:00
fix(xwayland): improve fullscreen behavior for games
This commit is contained in:
parent
b55de28749
commit
f5bca7be50
1 changed files with 10 additions and 0 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -4565,6 +4565,16 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
||||||
time = now.tv_sec * 1000 + now.tv_nsec / 1000000;
|
time = now.tv_sec * 1000 + now.tv_nsec / 1000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef XWAYLAND
|
||||||
|
if (c && c->mon && client_is_x11(c)) {
|
||||||
|
float scale = c->mon->wlr_output->scale;
|
||||||
|
if (scale > 0.0f && fabsf(scale - 1.0f) > 0.001f) {
|
||||||
|
sx *= scale;
|
||||||
|
sy *= scale;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Let the client know that the mouse cursor has entered one
|
/* Let the client know that the mouse cursor has entered one
|
||||||
* of its surfaces, and make keyboard focus follow if desired.
|
* of its surfaces, and make keyboard focus follow if desired.
|
||||||
* wlroots makes this a no-op if surface is already focused */
|
* wlroots makes this a no-op if surface is already focused */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue