From 4613a803ea33f2f938f498d5ec272ca8f8852209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Sun, 11 Mar 2018 14:23:25 +0200 Subject: frames: ignore gdk_window_process_all_updates deprecation warnings --- src/ui/frames.c | 12 ++++++++++-- 1 file 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 @@ -105,6 +105,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); } -- cgit v1.2.1