window: Don't invalidate cssnode during get_preferred_width()
window: Don't invalidate cssnode during get_preferred_width()

Getting the shadow width must not call gtk_style_context_set_state()
because that will invalidate the node and cause a style-updated emission
which can cause gtk_widget_queue_resize() calls.

And calling queue_resize() from get_preferred_size() essentially means
the size is permanently invalid because you invalidate it while
querying it.

This causes flickering of windows when going from/to backdrop state. To
avoid this we either need to fix the theme to not have different shadow
sizes in those cases or we need to ensure the window doesn't flicker in
the first place.

grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita,grubersjoe/adwaita