<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Restoring maximized window state in Wayland results in tiny window"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=783901#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Restoring maximized window state in Wayland results in tiny window"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=783901">bug 783901</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>Well, the reason is pretty obvious, calling meta_window_force_placement() from
xdg_toplevel_set_maximized() will set "window->placed" to TRUE prior to call
meta_window_maximize() and thus we shall not return early:

<a href="https://git.gnome.org/browse/mutter/tree/src/core/window.c#n2729">https://git.gnome.org/browse/mutter/tree/src/core/window.c#n2729</a>

As a result, the "old" geometry is saved with a zero size...

But reverting  commit <a href="https://git.gnome.org/browse/mutter/commit/?id=7801df7">7801df7</a> will re-introduce <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wayland: new window momentarily displays on wrong monitor"
   href="show_bug.cgi?id=782183">bug 782183</a> and <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wayland: presenting maximized window is jittery"
   href="show_bug.cgi?id=781353">bug 781353</a> so we
should fix those differently, so we ought to find a different fix.</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>