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:
parent
ead84b9dca
commit
6a8ab57e48
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user