[Wayland-bugs] [Bug 755947] wayland: gnome-terminal does not fill entire area when tiled
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jun 23 08:21:45 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=755947
--- Comment #7 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to Olivier Fourdan from comment #5)
> So, FWIW, I agree with this patch but it depends on bug 766860 on Wayland.
Olivier's patches to signal a simple boolean tiling state through Wayland have
now been applied.
(In reply to Matthias Clasen from comment #6)
> I agree that this patch will improve things under gnome-shell. But I'd
> caution that 'tiled' does not necessarily imply 'fixed size' - Jasper had a
> prototype for a tiling system that lets you resize tiled windows
Can we apply this one for now, and cross that bridge when we come to it? The
protocol by which GTK on Wayland learns about tiled windows is currently
GTK/Mutter-specific, so this isn't going to hurt anything on non-Mutter
compositors; and it's a rather annoying "papercut" when using half-screen
terminals under Wayland.
If someone adds per-edge "snapped" flags to the Wayland protocol later, we'd
want to change the logic to something like this pseudocode:
if (maximized || fullscreen)
flags |= (EXACT_WIDTH | EXACT_HEIGHT);
if (snapped_left && snapped_right)
flags |= EXACT_WIDTH;
if (snapped_top && snapped_bottom)
flags |= EXACT_HEIGHT;
...
if (flags & EXACT_WIDTH)
use the actual width requested
else
round width down to the next character-cell step
if (flags & EXACT_HEIGHT)
use the actual height requested
else
round height down to the next character-cell step
(That would also require splitting up GDK_HINT_RESIZE_INC into horizontal and
vertical parts, so that gdk_window_constrain_size() can do the right thing.)
--
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/20160623/9431667b/attachment.html>
More information about the wayland-bugs
mailing list