mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 09:54:40 +00:00
x11: Let X11 connection owners call XSynchronize() themselves
Only make the context carry the boolean state, but move the two libX11 calls into their corresponding connection handler objects. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2444>
This commit is contained in:
@@ -136,8 +136,6 @@ meta_context_test_setup (MetaContext *context,
|
||||
settings,
|
||||
META_EXPERIMENTAL_FEATURE_SCALE_MONITOR_FRAMEBUFFER);
|
||||
|
||||
meta_set_syncing (!!g_getenv ("MUTTER_SYNC"));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -203,6 +201,14 @@ meta_context_test_notify_ready (MetaContext *context)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef HAVE_X11
|
||||
static gboolean
|
||||
meta_context_test_is_x11_sync (MetaContext *context)
|
||||
{
|
||||
return !!g_getenv ("MUTTER_SYNC");
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
run_tests_idle (gpointer user_data)
|
||||
{
|
||||
@@ -329,6 +335,9 @@ meta_context_test_class_init (MetaContextTestClass *klass)
|
||||
context_class->setup = meta_context_test_setup;
|
||||
context_class->create_backend = meta_context_test_create_backend;
|
||||
context_class->notify_ready = meta_context_test_notify_ready;
|
||||
#ifdef HAVE_X11
|
||||
context_class->is_x11_sync = meta_context_test_is_x11_sync;
|
||||
#endif
|
||||
|
||||
signals[BEFORE_TESTS] =
|
||||
g_signal_new ("before-tests",
|
||||
|
Reference in New Issue
Block a user