mirror of
https://github.com/brl/mutter.git
synced 2025-03-09 21:05:02 +00:00

g_idle_add() makes no guarantee about when it will be run - if Mutter is busy drawing and blocking glXSwapBuffers() it could happen only minutes later. Use meta_later_add (META_LATER_BEFORE_REDRAW) instead - this will deterministically be run after the Wayland socket is read from but before the next frame is painted. https://bugzilla.gnome.org/show_bug.cgi?id=736694