wlt: terminal: do not snap to grid-size on fullscreen-mode
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 15:21:27 +0000 (17:21 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 15:21:27 +0000 (17:21 +0200)
If we are in fullscreen mode, we should allocate all space that is
available (like in maximized mode) instead of snapping to the next
grid-size.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wlt_terminal.c

index 06792b3..c76a931 100644 (file)
@@ -254,7 +254,8 @@ static void widget_prepare_resize(struct wlt_widget *widget,
         * Every redraw-handler is guaranteed to work for every size, but still,
         * we should try to avoid invalid-sizes to not generate artifacts. */
 
-       if (flags & WLT_WINDOW_MAXIMIZED) {
+       if (flags & WLT_WINDOW_MAXIMIZED ||
+           flags & WLT_WINDOW_FULLSCREEN) {
                /* if maximized, always use requested size */
                *new_width = width;
                *new_height = height;