summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-02 19:33:52 +0100
committerwm4 <wm4@nowhere>2014-01-06 20:21:07 +0100
commitc5de0b0a6cd40754366ae7f98ddb1079c0623968 (patch)
treed49ec894fb5dffaf57986040185c71449a3e3fba
parentf9bdfc0782eeb8c29d21be82d872954c2630d6fc (diff)
downloadmpv-c5de0b0a6cd40754366ae7f98ddb1079c0623968.tar.bz2
mpv-c5de0b0a6cd40754366ae7f98ddb1079c0623968.tar.xz
wayland: don't change set fullscreen twice
Newest weston chrashes if we call set_fullscreen twice. This is a major bug I which I should probably report.
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index e45483c5f2..f73dc0c2ca 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -810,7 +810,7 @@ static void vo_wayland_border (struct vo *vo)
static void vo_wayland_fullscreen (struct vo *vo)
{
struct vo_wayland_state *wl = vo->wayland;
- if (!wl->display.shell)
+ if (!wl->display.shell || !!vo->opts->fullscreen == wl->window.is_fullscreen)
return;
struct wl_output *fs_output = wl->display.fs_output;