[Wayland-bugs] [Bug 780810] New: GtkWindow size-allocate width and height are way too big in Wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Sat Apr 1 14:58:32 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=780810
Bug ID: 780810
Summary: GtkWindow size-allocate width and height are way too
big in Wayland
Classification: Platform
Product: gtk+
Version: 3.22.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: h at realh.co.uk
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
GNOME version: ---
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.
--
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/20170401/1576e27f/attachment.html>
More information about the wayland-bugs
mailing list