GNOME Bugzilla – Bug 738760
Show window dimensions
Last modified: 2016-03-31 13:22:00 UTC
From https://bugzilla.gnome.org/show_bug.cgi?id=729700#c10 "Also we can make it easier by doing something similar to what gnome-terminal does: Overlay current display size when user resizes the window."
commit: 7efd249a959128cba3559d2cca69bed23e42e88a display-page: Show display size on widget resize This is similar to what gnome-terminal does but unlike gnome-terminal we don't show display size label on user initiating the window drag but rather *after* every resize of the widget. The label is automatically hiden away after 4 seconds of last resize operation. The reason we do it differently is mainly because I failed to find which signals/events gnome-terminal (vte actually) hooks on to for this. Besides this isn't so bad solution either and much better than not showing the label at all.
It's not gnome-terminal doing that, it's mutter, and it does it for every window that resizes in integer multiples, based on the WM_SIZE_HINTS information (GdkGeometry / gtk_window_set_geometry()) In practice, this means there is no way for gnome-boxes to get exactly the same effect (especially under wayland, where a compositor initiated resize is invisible to the app)
(In reply to comment #2) > It's not gnome-terminal doing that, it's mutter, and it does it for every > window that resizes in integer multiples, based on the WM_SIZE_HINTS > information (GdkGeometry / gtk_window_set_geometry()) > In practice, this means there is no way for gnome-boxes to get exactly the same > effect (especially under wayland, where a compositor initiated resize is > invisible to the app) ah, thanks for the info. :) I can sleep better now.
(In reply to comment #2) > It's not gnome-terminal doing that, it's mutter, and it does it for every > window that resizes in integer multiples, based on the WM_SIZE_HINTS > information (GdkGeometry / gtk_window_set_geometry()) Actually, are you sure we are talking about the same thing here? The size info shown by terminal is in terms of character rows and columns.