[mutter/wip/carlosg/x11less-preparations: 86/87] compositor: Drop error trap
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/x11less-preparations: 86/87] compositor: Drop error trap
- Date: Fri, 3 May 2019 15:32:43 +0000 (UTC)
commit b610927ba899431278b4e65a726a88f5fa9cd506
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Feb 25 18:45:30 2019 +0100
compositor: Drop error trap
Code underneath seems to handle errors properly, and this is apparently
here to save a few XSync()s on X11. Just drop this windowing dependent
bit to make things cleaner.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/420
src/compositor/compositor.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 2a2c8fb3b..f015c92f4 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -692,11 +692,8 @@ meta_compositor_add_window (MetaCompositor *compositor,
{
MetaWindowActor *window_actor;
ClutterActor *window_group;
- MetaDisplay *display = compositor->display;
GType window_actor_type = G_TYPE_INVALID;
- meta_x11_error_trap_push (display->x11_display);
-
switch (window->client_type)
{
case META_WINDOW_CLIENT_TYPE_X11:
@@ -724,8 +721,6 @@ meta_compositor_add_window (MetaCompositor *compositor,
*/
compositor->windows = g_list_append (compositor->windows, window_actor);
sync_actor_stacking (compositor);
-
- meta_x11_error_trap_pop (display->x11_display);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]