<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 - GTK_CSD=0 does not disable CSD"
href="https://bugzilla.gnome.org/show_bug.cgi?id=776290">776290</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GTK_CSD=0 does not disable CSD
</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>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>cyphar@cyphar.com
</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=342234&action=diff" name="attach_342234" title="gtk3-make-csd-optional.patch">attachment 342234</a> <a href="attachment.cgi?id=342234&action=edit" title="gtk3-make-csd-optional.patch">[details]</a></span> <a href='review?bug=776290&attachment=342234'>[review]</a>
gtk3-make-csd-optional.patch
Currently there exists the GTK_CSD environment variable that is checked to
decide whether CSD should be set for a particular window. However, it's used as
a hint rather than as an instruction to an application.
In addition, even if an application does *not* specify it wants to use CSD, if
you're using a backend other than X (such as Wayland) you will *still* get CSDs
on your GTK+3 applications -- even though neither the user nor the application
want it.
IMO the solution is to either always honour GTK_CSD if it's set, or remove the
code that specifically makes Wayland _always_ use CSDs even if the application
did not request to use them.
I've attached my attempt at a patch for this. PTAL. Note that Arch Linux has
their own patch for this as well[1].
[1]:
<a href="https://aur.archlinux.org/cgit/aur.git/plain/gtk3-make-csd-optional.patch?h=gtk3-optional-csd">https://aur.archlinux.org/cgit/aur.git/plain/gtk3-make-csd-optional.patch?h=gtk3-optional-csd</a></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>