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 <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-10-01 17:21:27 +02:00
parent ead84b9dca
commit 6a8ab57e48

View 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, * Every redraw-handler is guaranteed to work for every size, but still,
* we should try to avoid invalid-sizes to not generate artifacts. */ * 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 */ /* if maximized, always use requested size */
*new_width = width; *new_width = width;
*new_height = height; *new_height = height;