diff options
author | Victor Kareh <[email protected]> | 2019-05-21 13:42:41 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 10:49:37 -0400 |
commit | b59538af6e5c2858fc0d01ac1db42957c303ec48 (patch) | |
tree | c4deb980a55181e37704314cb0ce1c8486cf74fc /src/ui/frames.c | |
parent | b0a9363a46746a942841ce79766a0d0f96d51d45 (diff) | |
download | marco-b59538af6e5c2858fc0d01ac1db42957c303ec48.tar.bz2 marco-b59538af6e5c2858fc0d01ac1db42957c303ec48.tar.xz |
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
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r-- | src/ui/frames.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -1030,6 +1030,20 @@ meta_frames_set_title (MetaFrames *frames, } 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) { |