<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GtkWindow reacts on maximize action even if it is fixed-width"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=757530">bug 757530</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>ofourdan@redhat.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GtkWindow reacts on maximize action even if it is fixed-width"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=757530#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GtkWindow reacts on maximize action even if it is fixed-width"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=757530">bug 757530</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>