diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-03-11 14:23:25 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-03-11 14:23:25 +0200 |
commit | 4613a803ea33f2f938f498d5ec272ca8f8852209 (patch) | |
tree | f0d8810e0bec90352b710000a84c87110224f37b | |
parent | 453faa20b262f4bb20fa0b5fd9389a7fb16e0921 (diff) | |
download | metacity-4613a803ea33f2f938f498d5ec272ca8f8852209.tar.gz |
frames: ignore gdk_window_process_all_updates deprecation warnings
-rw-r--r-- | src/ui/frames.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index eb0a529f..ab7e0d8a 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -106,6 +106,14 @@ struct _MetaFrames G_DEFINE_TYPE (MetaFrames, meta_frames, GTK_TYPE_WINDOW) static void +process_all_updates (void) +{ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + gdk_window_process_all_updates (); + G_GNUC_END_IGNORE_DEPRECATIONS +} + +static void get_client_rect (MetaFrameGeometry *fgeom, GdkRectangle *rect) { @@ -1276,7 +1284,7 @@ meta_frames_repaint_frame (MetaFrames *frames, /* repaint everything, so the other frame don't * lag behind if they are exposed */ - gdk_window_process_all_updates (); + process_all_updates (); } static void @@ -2729,7 +2737,7 @@ meta_frames_push_delay_exposes (MetaFrames *frames) if (frames->expose_delay_count == 0) { /* Make sure we've repainted things */ - gdk_window_process_all_updates (); + process_all_updates (); XFlush (frames->xdisplay); } |