mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/theme-node-transition: Guard against 0-sized offscreen box
We know beforehand that setting up the framebuffers will fail in that case, so we can avoid cluttering the log with warnings. (Although the warning would likely indicate a stylesheet bug) https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/289 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2326>
This commit is contained in:
parent
77d0471bc4
commit
71d503dc6e
1 changed files with 2 additions and 1 deletions
|
|
@ -369,7 +369,8 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
|
|||
priv->last_allocation = *allocation;
|
||||
|
||||
calculate_offscreen_box (transition, allocation);
|
||||
priv->needs_setup = !setup_framebuffers (transition, allocation,
|
||||
priv->needs_setup = clutter_actor_box_get_area (&priv->offscreen_box) == 0 ||
|
||||
!setup_framebuffers (transition, allocation,
|
||||
resource_scale);
|
||||
|
||||
if (priv->needs_setup) /* setting up framebuffers failed */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue