From b59538af6e5c2858fc0d01ac1db42957c303ec48 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 13:42:41 -0400 Subject: ui: Add meta_ui_update_frame_style() This method allows forcing a style update of a particular frame from the core, so that it can pick up style variants. https://bugzilla.gnome.org/show_bug.cgi?id=645355 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/97554dc4 --- src/ui/frames.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ui/frames.c') diff --git a/src/ui/frames.c b/src/ui/frames.c index 1adb3ccf..9f1ee8cb 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -1029,6 +1029,20 @@ meta_frames_set_title (MetaFrames *frames, invalidate_whole_window (frames, frame); } +void +meta_frames_update_frame_style (MetaFrames *frames, + Window xwindow) +{ + MetaUIFrame *frame; + + frame = meta_frames_lookup_window (frames, xwindow); + + g_assert (frame); + + meta_frames_attach_style (frames, frame); + invalidate_whole_window (frames, frame); +} + void meta_frames_repaint_frame (MetaFrames *frames, Window xwindow) -- cgit v1.2.1