From 6a8ab57e484df290f2964c6109142fbc3c00276c Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 1 Oct 2012 17:21:27 +0200 Subject: [PATCH] wlt: terminal: do not snap to grid-size on fullscreen-mode 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 --- src/wlt_terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wlt_terminal.c b/src/wlt_terminal.c index 06792b3..c76a931 100644 --- a/src/wlt_terminal.c +++ b/src/wlt_terminal.c @@ -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; -- 2.7.4