[Wayland] Throttle frame fallback when window is minimized
Categories
(Core :: Widget: Gtk, enhancement, P3)
Tracking
()
People
(Reporter: stransky, Assigned: stransky)
References
()
Details
There's no point to go full speed the when window is minimized.
Comment 1•3 years ago
|
||
FWIW, I'm really surprised about this. This may well be a compositor bug - I'll check in Mutter. Still probably a good idea to do something about it in FF, but we need to keep in mind that there can be window previews.
Comment 2•3 years ago
|
||
Just confirmed with weston-simple-egl
that Mutter does not correctly throttle frame callbacks when minimized - I'll look into it. So maybe no point for you bothering here.
Assignee | ||
Comment 3•3 years ago
|
||
Yes, KDE throttles frame callbacks for minimized windows.
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Tested on Gnome and even if I hit 'minimize' icon and a window is minimized, we don't get 'minimized' window state event - it looks like this state is ignored on gnome-shell/mutter. So the patch I did for is doesn't work as we don't get minimized state info.
Comment 5•3 years ago
|
||
Yeah, I'm afraid that's how the protocol works :/ https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/stable/xdg-shell/xdg-shell.xml#L1047-1054:
Request that the compositor minimize your surface. There is no way to know if the surface is currently minimized, nor is there any way to unset minimization on this surface.
But the following part is better:
If you are looking to throttle redrawing when minimized, please instead use the wl_surface.frame event for this, as this will also work with live previews on windows in Alt-Tab, Expose or similar compositor features.
Hehe, somebody knew! :)
Anyhow, will try to investigate the Mutter issue this WE.
Comment 6•3 years ago
|
||
Fixed in Gnome/Mutter 43.1/42.6, due on 22. Okt.
Description
•