From: Juan Zhao <juan.j.z...@linux.intel.com>

---
 src/shell.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/shell.c b/src/shell.c
index b77cef3..e0c8f07 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1303,10 +1303,6 @@ weston_surface_set_fullscreen(struct weston_surface 
*surface)
        struct weston_output *output = surface->fs_support.fullscreen_output;
        center_on_output(surface, output);
 
-       if(output->current->width == surface->geometry.width &&
-          output->current->height == surface->geometry.height)
-               return 0;
-
        switch(surface->fs_support.fs_method) {
        case WESTON_SURFACE_FULLSCREEN_DEFAULT:
                weston_surface_damage(surface);
@@ -1462,6 +1458,8 @@ configure(struct weston_shell *base, struct 
weston_surface *surface,
                /* fall through */
        case SHELL_SURFACE_FULLSCREEN:
                weston_surface_set_fullscreen(surface);
+               x = surface->geometry.x;
+               y = surface->geometry.y;
                break;
        default:
                break;
-- 
1.7.5.4

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to