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

            Bug ID: 766860
           Summary: tiled (snapped, half-maximized) windows in Wayland
                    aren't GDK_WINDOW_STATE_TILED
    Classification: Platform
           Product: gtk+
           Version: 3.20.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
     GNOME version: ---

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 Bug #762067)

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 Bug #760944: because the gnome-terminal can't tell it has been
tiled, it doesn't disable the geometry-based resizing, leading to symptoms
similar to Bug #755947. The same would be true for any other terminal that
implemented resizing in steps of 1 character cell.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to