diff options
author | Dudemanguy <random342@airmail.cc> | 2023-07-17 14:14:36 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-19 01:14:32 +0000 |
commit | e3992664008c6d37012e968e2656a38edd8aa151 (patch) | |
tree | cb2a3ff401d1302f1291982944b93b1f40983d20 /video/out/wayland_common.h | |
parent | 949e1f0dcc9d4fc9b15212dea981e00248c562f1 (diff) | |
download | mpv-e3992664008c6d37012e968e2656a38edd8aa151.tar.bz2 mpv-e3992664008c6d37012e968e2656a38edd8aa151.tar.xz |
wayland: don't treat tiled and maximized windows the same
mpv has historically always treated the various tiled states in
xdg-shell as maximized (probably because it was easier). Well it turns
out that there are some tiling compositors (hyprland) that allow tiled
windows to maximize themselves. This can lead to some scenarios where
mpv ends up doing a maximize on hyprland which actually works since it's
not a no-op like on sway. Fix this by separating out the tiled state
from maximize. It works mostly the same, but the main difference is that
there's no request to tile yourself like there is with maximize. Should
fix #11954.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 2c554d4728..1607bb3a56 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -76,6 +76,7 @@ struct vo_wayland_state { bool hidden; bool locked_size; bool state_change; + bool tiled; bool toplevel_configured; int display_fd; int mouse_x; |