summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-07-17 13:30:31 -0400
committerVictor Kareh <[email protected]>2025-07-17 15:06:38 -0400
commit49a75ae202b6a98ccd5ae08c3a9b06fdb03d446f (patch)
tree69080ca256e1d85570f74b3dc945e801e398780b
parentb7e07035a360333da31f5c6b593f484d23aa74c2 (diff)
downloadmarco-49a75ae202b6a98ccd5ae08c3a9b06fdb03d446f.tar.bz2
marco-49a75ae202b6a98ccd5ae08c3a9b06fdb03d446f.tar.xz
frames: replace gdk_window_process_all_updates() with gdk_display_flush()fix-gtk-deprecations
Replace deprecated gdk_window_process_all_updates() with gdk_display_flush(). Both functions ensure pending updates are processed, but gdk_display_flush is more general for all display requests.
-rw-r--r--src/ui/frames.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index a458fd21..19c14c56 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1310,7 +1310,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 ();
+ gdk_display_flush (gdk_display_get_default ());
}
static void
@@ -2970,8 +2970,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 ();
- XFlush (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
+ gdk_display_flush (gdk_display_get_default ());
}
frames->expose_delay_count += 1;