mpv/video/out
Dudemanguy 2aaf531720 wayland: toplevel config fixes
There were a couple of erroneous things in the handle_toplevel_config
function. Firstly, looping through the different states was not handled
correctly. Launching a window as maximized (can happen in sway for
example) was always stuck on true and would never be set to false. Fix
this by always checking if XDG_TOPLEVEL_STATE_MAXIMIZED is found or not.
Also do a similar thing for the fullscreen state.

Additionally, there were some issues with resizing windows and
window-scale going back to old sizes. The root of this problem is that
the width and height arguments of handle_toplevel_config aren't actually
guarenteed to be the actual width and height of the surface. There are
times when mpv will set the surface size on its own (like with
window-scale) which will be unknown to the toplevel listener. To
complicate matters, there are times when we do want to use the width and
height arguments (like when resizing with the mouse).

Fix this by checking if the width and height arguments reported by
handle_toplevel_config changed from the previous call of the function.
If the value is different, then we go ahead and use them when setting
mpv's geometry. If not, then we just ignore it.
2020-02-06 16:17:25 +00:00
..
cocoa cocoa_common: remove deprecated VOCTRLs/VO_EVENTs 2019-12-12 19:56:03 +01:00
cocoa-cb cocoa-cb: add pinch to resize window gesture 2020-01-26 12:33:47 +01:00
d3d11 vo_gpu/d3d11: add support for configuring swap chain color space 2019-10-30 02:41:25 +02:00
gpu vo_gpu: fix crash if dither texture fails to allocate 2020-01-08 03:45:17 +01:00
hwdec vo_gpu: hwdec_vaapi: set correct hw_imgfmt value 2020-01-17 15:08:46 +01:00
opengl wayland: remove wayland-frame-wait-offset option 2020-01-31 00:40:44 +00:00
placebo
vulkan wayland: remove wayland-frame-wait-offset option 2020-01-31 00:40:44 +00:00
win32
android_common.c
android_common.h
aspect.c
aspect.h
bitmap_packer.c video/out/bitmap_packer: Avoid empty initializer list 2019-11-18 16:50:21 +01:00
bitmap_packer.h
cocoa_cb_common.swift cocoa-cb: fix race condition on quit 2020-01-26 12:12:22 +01:00
cocoa_common.h
cocoa_common.m cocoa_common: remove deprecated VOCTRLs/VO_EVENTs 2019-12-12 19:56:03 +01:00
d3d_shader_420p.h
d3d_shader_yuv.hlsl
dither.c
dither.h
dr_helper.c
dr_helper.h
drm_atomic.c drm_atomic: do not set immutable properties 2020-02-02 18:01:55 +02:00
drm_atomic.h
drm_common.c drm: avoid division by 0 in drm_pflip_cb with bad drivers 2019-12-07 18:34:25 +01:00
drm_common.h drm: avoid division by 0 in drm_pflip_cb with bad drivers 2019-12-07 18:34:25 +01:00
drm_prime.c
drm_prime.h
filter_kernels.c
filter_kernels.h
libmpv.h
vo.c vo: redraw dropped frame if paused between queuing and drawing frame 2019-12-04 23:55:42 +01:00
vo.h command, vo: add a mechanism for runtime DPI scale changes 2020-01-09 19:13:42 +01:00
vo_caca.c vo_caca: Implement VOCTRL_UPDATE_WINDOW_TITLE 2019-10-29 17:07:41 +01:00
vo_direct3d.c
vo_drm.c vo_drm: replace drmModeAddFB usage with drmModeAddFB2 2019-12-07 19:23:58 +01:00
vo_gpu.c Revert "vo: add support for externally driven renderloop and make wayland use it" 2019-10-10 17:41:19 +00:00
vo_image.c screenshot, vo_image: use global swscale/zimg parameters 2019-10-31 15:44:09 +01:00
vo_lavc.c
vo_libmpv.c
vo_mediacodec_embed.c
vo_null.c
vo_rpi.c rpi: destroy fullscreen change handling 2019-12-11 18:50:37 +01:00
vo_sdl.c vo_sdl: use new fullscreen change mechanism 2019-12-11 18:47:57 +01:00
vo_tct.c video/out/vo_tct: Use octal escape sequence instead of non-standard \e 2019-11-18 16:50:21 +01:00
vo_vaapi.c
vo_vdpau.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
vo_wlshm.c sws_utils: shuffle around some shit 2019-10-31 15:26:03 +01:00
vo_x11.c vo_x11: accept zimg formats 2019-11-03 22:52:12 +01:00
vo_xv.c
w32_common.c w32_common: support minimized and maximized properties 2020-01-26 15:36:12 +02:00
w32_common.h
wayland_common.c wayland: toplevel config fixes 2020-02-06 16:17:25 +00:00
wayland_common.h wayland: toplevel config fixes 2020-02-06 16:17:25 +00:00
win_state.c
win_state.h
x11_common.c video/out/x11: add fs-screen fallback 2019-12-22 02:33:48 +01:00
x11_common.h x11: use new option stuff to implement fullscreen 2019-11-29 13:56:58 +01:00