<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 - If a window was initially shown undecorated and set_decorated(True) is called, titlebar is drawn inside the window"
href="https://bugzilla.gnome.org/show_bug.cgi?id=782117">782117</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>If a window was initially shown undecorated and set_decorated(True) is called, titlebar is drawn inside the window
</td>
</tr>
<tr>
<th>Classification</th>
<td>Platform
</td>
</tr>
<tr>
<th>Product</th>
<td>gtk+
</td>
</tr>
<tr>
<th>Version</th>
<td>3.22.x
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>minor
</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>gnome@genodeftest.de
</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>Created <span class=""><a href="attachment.cgi?id=350963" name="attach_350963" title="A demo python3 script">attachment 350963</a> <a href="attachment.cgi?id=350963&action=edit" title="A demo python3 script">[details]</a></span>
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
<span class="quote">> python3 test_window_decoration_on_wayland.py</span >
inside a GNOME/wayland session. If you run it with
<span class="quote">> GDK_BACKEND=x11 python3 test_window_decoration_on_wayland.py</span >
instead, it will work fine.</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>