mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Don't trap XErrors in meta_compositor_process_event
meta_compositor_process_event uses meta_error_trap_push/pop for every event processed by meta_compositor_process_event which isn't needed and can cause performance problems. https://bugzilla.gnome.org/show_bug.cgi?id=613398
This commit is contained in:
parent
0021efd593
commit
f77507e825
@ -696,14 +696,6 @@ meta_compositor_process_event (MetaCompositor *compositor,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* This trap is so that none of the compositor functions cause
|
||||
* X errors. This is really a hack, but I'm afraid I don't understand
|
||||
* enough about Metacity/X to know how else you are supposed to do it
|
||||
*/
|
||||
|
||||
|
||||
meta_error_trap_push (compositor->display);
|
||||
switch (event->type)
|
||||
{
|
||||
case PropertyNotify:
|
||||
@ -726,8 +718,6 @@ meta_compositor_process_event (MetaCompositor *compositor,
|
||||
break;
|
||||
}
|
||||
|
||||
meta_error_trap_pop (compositor->display, FALSE);
|
||||
|
||||
/* Clutter needs to know about MapNotify events otherwise it will
|
||||
think the stage is invisible */
|
||||
if (event->type == MapNotify)
|
||||
|
Loading…
Reference in New Issue
Block a user