[Wayland-bugs] [Bug 757530] GtkWindow reacts on maximize action even if it is fixed-width

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Wed Nov 4 02:09:49 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=757530

Olivier Fourdan <ofourdan at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ofourdan at redhat.com

--- Comment #1 from Olivier Fourdan <ofourdan at redhat.com> ---
Yes, on X11, the window manager knows exactly how much screen estate a
maximized window would cover. The application sends a request to the WM to
change its state to maximized, the WM may decide not to allow maximization if
the window constraints do not allow for the expected size.

Moreover, on X11, the window manager handles the double click on the window
decorations (when the window manager decorates the windows, that doesn't apply
to CSD). 

On Wayland, it's different, and I am not sure we can precisely determine what
would be the size of the window once maximized.

On Wayland or when using CSD, the application itself manages its decoration and
header bar.

gtk header bar will not show the maximize button if the window is not of type
normal or if the window is not resizeable, but will still allow for double
click action (to try) to maximize the window, which is inconsistent imho.

So I'll post two patches:

1. Change gdkwindow-wayland to not allow for maximization if the window is
constained to a smaller size than the monitor size (this is an approximation
though, because the actual size of the window once maximized will most likely
be slightly smaller that the monitor size because of the docks)

2. Fix gtkwindow to apply the same restriction on maximization that gtk header
bar does for the maximize button, i.e. do not allow for maximization if the
window in not of type normal or not resizeable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20151104/fd0379f0/attachment.html>


More information about the wayland-bugs mailing list