From: David Herrmann Date: Mon, 1 Oct 2012 15:21:27 +0000 (+0200) Subject: wlt: terminal: do not snap to grid-size on fullscreen-mode X-Git-Tag: kmscon-7~415 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a8ab57e484df290f2964c6109142fbc3c00276c;p=platform%2Fupstream%2Fkmscon.git 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 --- 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;