[weston PATCH v6 2/7] shell:update default method

juan.j.zhao at linux.intel.com juan.j.zhao at linux.intel.com
Thu Feb 16 23:26:11 PST 2012


From: Juan Zhao <juan.j.zhao at 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



More information about the wayland-devel mailing list