fullscreen: Remove dirty sizing trick
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.
This commit is contained in:
parent
af314bb4f5
commit
11f1433e0a
@ -65,14 +65,6 @@ fullscreen_handler(struct window *window, void *data)
|
||||
window_set_fullscreen(window, fullscreen->fullscreen);
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user