summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-10-21 21:44:35 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-10-21 21:44:35 +0000
commitc6b475b251184dc59aa17fe82e505a9fbe8b0aab (patch)
treec9ed8df22c056f1b825f2e320288a444fd2c3b64 /src/errors.h
parent37a1e6f57b171854407e2c014a001dbe89af3016 (diff)
downloadmetacity-c6b475b251184dc59aa17fe82e505a9fbe8b0aab.tar.gz
metacity-c6b475b251184dc59aa17fe82e505a9fbe8b0aab.tar.bz2
Optimizations for managing new windows (do not all take effect if
2002-10-21 Havoc Pennington <hp@redhat.com> Optimizations for managing new windows (do not all take effect if METACITY_DEBUG=1). Bug #96404 * src/keybindings.c (meta_change_keygrab): use error trap nesting and conditionalize on meta_is_verbose() to avoid a ton of XSync * src/display.c (meta_change_button_grab): ditto Throughout: move to new error trap setup to save on XSync calls, new setup is: * src/errors.c (meta_error_trap_push_with_return): new function, an error trap that needs to care about return value and thus sync even if an outer trap still exists (meta_error_trap_pop_with_return): new function (meta_error_trap_pop): add "last_request_was_roundtrip" argument allowing us to avoid XSync() if we just did a GetProperty or whatever. * src/util.c (meta_warning): flush the warning file descriptor * src/Makefile.am (INCLUDES): define G_LOG_DOMAIN
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/errors.h b/src/errors.h
index b1a90e4..e7c8f38 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -25,9 +25,15 @@
#include "util.h"
#include "display.h"
-void meta_errors_init (void);
-void meta_error_trap_push (MetaDisplay *display);
+void meta_errors_init (void);
+void meta_error_trap_push (MetaDisplay *display);
+void meta_error_trap_pop (MetaDisplay *display,
+ gboolean last_request_was_roundtrip);
+
+void meta_error_trap_push_with_return (MetaDisplay *display);
/* returns X error code, or 0 for no error */
-int meta_error_trap_pop (MetaDisplay *display);
+int meta_error_trap_pop_with_return (MetaDisplay *display,
+ gboolean last_request_was_roundtrip);
+
#endif