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>
* 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;