summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-15 23:17:39 -0500
committerDudemanguy <random342@airmail.cc>2024-02-26 15:51:16 +0000
commit76472e1ba8efd04b0eab765c88e97ac5e0c9c51a (patch)
tree56b2ecf2e936b4496dd991bd28874df4b891adaf /video/out/wayland_common.h
parent4375a26e3c7ae289b9f49c3b266ccf829500cd42 (diff)
downloadmpv-76472e1ba8efd04b0eab765c88e97ac5e0c9c51a.tar.bz2
mpv-76472e1ba8efd04b0eab765c88e97ac5e0c9c51a.tar.xz
wayland: remove old sway/wlroots hack
It's actually been like this for years, but wlroots doesn't keep track of resizes a client does independent of the compositor. When using sway, this leads to weird behavior with floating clients resizing themselves back to the old size if you unfocus it. mpv has been working around this for a long time, but it's really annoying to selectively ignore events based on a weird heuristic. Since Sway finally fixed this bug, let's go ahead and drop this crap. Note that other wlroots compositors may possibly experience a regression if they didn't correct for this like sway does, but it's for their own good.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 1d5b2a21d2..0f79637183 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -64,8 +64,6 @@ struct vo_wayland_state {
int bounded_width;
int reduced_height;
int reduced_width;
- int toplevel_width;
- int toplevel_height;
/* State */
bool activated;