<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 - GtkWindow size-allocate width and height are way too big in Wayland"
href="https://bugzilla.gnome.org/show_bug.cgi?id=780810">780810</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GtkWindow size-allocate width and height are way too big in Wayland
</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>h@realh.co.uk
</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>I'm writing a neovim remote-ui using GtkTextView. I'd like to be able to resize
the window to fit the TextView in case the embedded nvim requests a resize, or
to keep the same number of text columns and lines if the user changes the font
on the fly.
>From reading #771112 I realise now I was trying to do this the wrong way, but
that's beside the point, because I found that the width and height in the
window's size-allocate signal are even more unreliable than expected. For
example, when the TextWidget's allocation is 480x390 the window's allocation is
532x473. There are no other widgets or padding between the TextView and the
window; in X11 the allocation values are the same for both.
Even if the window was CSD (which it isn't), and the allocation included the
shadow effect, that's still a big discrepancy, so I feel like there's something
wrong that warrants investigation rather than just ignoring it because we're
not supposed to use GtkWindow::size_allocate any more.</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>