<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - tiled (snapped, half-maximized) windows in Wayland aren't GDK_WINDOW_STATE_TILED"
href="https://bugzilla.gnome.org/show_bug.cgi?id=766860">766860</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>tiled (snapped, half-maximized) windows in Wayland aren't GDK_WINDOW_STATE_TILED
</td>
</tr>
<tr>
<th>Classification</th>
<td>Platform
</td>
</tr>
<tr>
<th>Product</th>
<td>gtk+
</td>
</tr>
<tr>
<th>Version</th>
<td>3.20.x
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: Wayland
</td>
</tr>
<tr>
<th>Assignee</th>
<td>gtk-bugs@gtk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon.mcvittie@collabora.co.uk
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>gtk-bugs@gtk.org
</td>
</tr>
<tr>
<th>CC</th>
<td>rob@robster.org.uk, wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>GNOME version</th>
<td>---
</td>
</tr></table>
<p>
<div>
<pre>Steps to reproduce:
* GNOME Shell 3.20 in Wayland mode
* Snap an X11 GTK window to one half of the screen (for example
`GDK_BACKEND=x11 gedit`)
* Snap a Wayland GTK window to the other half (for example gnome-clocks)
Expected result:
* Each app's top-level window has
(gdk_window_get_state (gtk_widget_get_window (top_level)) & TILED)
* In particular, each top-level window has rectangular corners
Actual result:
* The X11 window behaves as expected
* The Wayland window is not flagged as TILED, and has rounded corners
(symptoms similar to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Adwaita: half maximized unfocused window has rounded corners"
href="show_bug.cgi?id=762067">Bug #762067</a>)
This appears to be because enum xdg_surface_state in the xdg_shell protocol
used by Mutter and GTK to communicate the MAXIMIZED state doesn't have a flag
corresponding to being TILED.
This has a particularly annoying effect when using a gnome-terminal with the
patches from <a class="bz_bug_link
bz_status_NEW "
title="NEW - resizing and geometry (snap to character cells) regressed with Gtk 3.19+"
href="show_bug.cgi?id=760944">Bug #760944</a>: because the gnome-terminal can't tell it has been
tiled, it doesn't disable the geometry-based resizing, leading to symptoms
similar to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - wayland: gnome-terminal does not fill entire area when tiled"
href="show_bug.cgi?id=755947">Bug #755947</a>. The same would be true for any other terminal that
implemented resizing in steps of 1 character cell.</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>