[PATCH 2/2] fullscreen: Remove dirty sizing trick

Jasper St. Pierre jstpierre at mecheye.net
Mon May 12 08:31:49 PDT 2014


xdg-shell mandates that the FULLSCREEN state means that we must match
the size that we were configured to, at least by default. Other states
or protocol extensions might relax this requirement, but at least for
now implement the behavior specified in the protocol documentation.
---
 clients/fullscreen.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/clients/fullscreen.c b/clients/fullscreen.c
index 789d243..28efb15 100644
--- a/clients/fullscreen.c
+++ b/clients/fullscreen.c
@@ -66,14 +66,6 @@ fullscreen_handler(struct window *window, void *data)
 }
 
 static void
-resize_handler(struct widget *widget, int width, int height, void *data)
-{
-	struct fullscreen *fullscreen = data;
-
-	widget_set_size(widget, fullscreen->width, fullscreen->height);
-}
-
-static void
 draw_string(cairo_t *cr,
 	    const char *fmt, ...)
 {
@@ -551,7 +543,6 @@ int main(int argc, char *argv[])
 	widget_set_transparent(fullscreen.widget, 0);
 
 	widget_set_default_cursor(fullscreen.widget, CURSOR_LEFT_PTR);
-	widget_set_resize_handler(fullscreen.widget, resize_handler);
 	widget_set_redraw_handler(fullscreen.widget, redraw_handler);
 	widget_set_button_handler(fullscreen.widget, button_handler);
 	widget_set_motion_handler(fullscreen.widget, motion_handler);
-- 
1.9.0



More information about the wayland-devel mailing list