[Wayland-bugs] [Bug 762713] New: [Wayland] GDK doesn't remember unmaximized or unfullscreen size

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Feb 26 08:10:27 UTC 2016


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

            Bug ID: 762713
           Summary: [Wayland] GDK doesn't remember unmaximized or
                    unfullscreen size
    Classification: Platform
           Product: gtk+
           Version: 3.19.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: jadahl at gmail.com
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

According to xdg_shell, a xdg_surface.configure with size 0x0 should be
interpreted as that it is up to the client to set a size. When being
unfullscreened this should mean the client should configure its size to what it
was before being maximized or fullscreened.

This problem currently only reproduces on weston, since weston will send a
configure with size 0x0 when unmaximizing or unfulscreening.

How to reproduce:

1. Open weston.
2. Run for example gnome-terminal in that weston session.
3. Press F11 to fullscreen
4. Press F11 to unfullscreen

The size size after 4 is now the same as after 3, except the window now has
window decorations.

I tried a bit to make gdk/wayland remember the window size and configure the
size properly when the compositor sends 0x0, but it seems the meaning of
window->size is very context dependent, and remembering that either resulted in
window growing incorrectly or shrinking incorrectly, depending on whether the
shadow width was taken into account.

How should window->width/height be interpreted? Because right now it seems that
for a non-resizing window, it'll switch between including shadow width and
excluding, without the actual window changing size.

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


More information about the wayland-bugs mailing list