[Wayland-bugs] [Bug 782117] New: If a window was initially shown undecorated and set_decorated(True) is called, titlebar is drawn inside the window
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed May 3 11:13:00 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=782117
Bug ID: 782117
Summary: If a window was initially shown undecorated and
set_decorated(True) is called, titlebar is drawn
inside the window
Classification: Platform
Product: gtk+
Version: 3.22.x
OS: Linux
Status: NEW
Severity: minor
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: gnome at genodeftest.de
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 350963
--> https://bugzilla.gnome.org/attachment.cgi?id=350963&action=edit
A demo python3 script
Steps to reproduce:
0. on a GNOME/Wayland session,
1. create a window with decorations
2. show the window
3. unset the decorations using gtk_window_set_decorated(window, false)
What happens:
The window messes up, drawing the titlebar way inside the window.
What should happen:
Do not draw the titlebar inside the window.
Affected version:
gtk3-3.22.12-2.fc25.x86_64
Additional info:
This issue is not present on x11 with GDK_BACKEND=x11 enforced on a
GNOME/Wayland session.
I know that the documentation specifies that unsetting the decoration may fail,
but since Gtk+ on Wayland uses client-side decorations, there is no window
manager to blame.
To reproduce, simply run the attached python script with
> python3 test_window_decoration_on_wayland.py
inside a GNOME/wayland session. If you run it with
> GDK_BACKEND=x11 python3 test_window_decoration_on_wayland.py
instead, it will work fine.
--
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/20170503/0213ed11/attachment-0001.html>
More information about the wayland-bugs
mailing list