forked from AuroraMiddleware/gtk
window: ignore resize increments for maximized/fullscreen
Once a window is maximized/fullscreen, resize increments should be ignored otherwise the window may appear smaller than the screen size. That also applies to configure requests as well. https://bugzilla.gnome.org/show_bug.cgi?id=751368
This commit is contained in:
parent
f0ba65687a
commit
42b02d9d01
@ -8799,7 +8799,12 @@ gtk_window_compute_configure_request_size (GtkWindow *window,
|
||||
}
|
||||
|
||||
/* Override any size with gtk_window_resize() values */
|
||||
if (info)
|
||||
if (priv->maximized || priv->fullscreen)
|
||||
{
|
||||
/* Unless we are maximized or fullscreen */
|
||||
gtk_window_get_remembered_size (window, width, height);
|
||||
}
|
||||
else if (info)
|
||||
{
|
||||
if (info->resize_width > 0)
|
||||
*width = info->resize_width;
|
||||
|
Loading…
Reference in New Issue
Block a user