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.
This commit is contained in:
Alexander Preisinger 2014-01-02 19:33:52 +01:00
parent 4350a76a01
commit e947c72fe9
1 changed files with 1 additions and 1 deletions

View File

@ -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;