mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
Merge branch 'tiled-states' into 'main'
Fix a corner-case in window states Closes #5809 See merge request GNOME/gtk!5926
This commit is contained in:
commit
d6c80d4f35
@ -4466,6 +4466,11 @@ update_window_style_classes (GtkWindow *window)
|
|||||||
|
|
||||||
if (!priv->edge_constraints)
|
if (!priv->edge_constraints)
|
||||||
{
|
{
|
||||||
|
gtk_widget_remove_css_class (widget, "tiled-top");
|
||||||
|
gtk_widget_remove_css_class (widget, "tiled-right");
|
||||||
|
gtk_widget_remove_css_class (widget, "tiled-bottom");
|
||||||
|
gtk_widget_remove_css_class (widget, "tiled-left");
|
||||||
|
|
||||||
if (priv->tiled)
|
if (priv->tiled)
|
||||||
gtk_widget_add_css_class (widget, "tiled");
|
gtk_widget_add_css_class (widget, "tiled");
|
||||||
else
|
else
|
||||||
@ -4473,6 +4478,8 @@ update_window_style_classes (GtkWindow *window)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
gtk_widget_remove_css_class (widget, "tiled");
|
||||||
|
|
||||||
if (edge_constraints & GDK_TOPLEVEL_STATE_TOP_TILED)
|
if (edge_constraints & GDK_TOPLEVEL_STATE_TOP_TILED)
|
||||||
gtk_widget_add_css_class (widget, "tiled-top");
|
gtk_widget_add_css_class (widget, "tiled-top");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user