summaryrefslogtreecommitdiff
path: root/src/core/errors.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-01-05 13:31:01 +0100
committerZenWalker <[email protected]>2019-01-07 01:44:52 +0100
commitb4dcd38a04c6ab44da5d8ac63b386419c9bda7a4 (patch)
tree03c638609b823c0df082816d31a6b18213b0dd4c /src/core/errors.c
parent898e9417c703516dfe2c4b9dc1bd78b6299883ce (diff)
downloadmarco-b4dcd38a04c6ab44da5d8ac63b386419c9bda7a4.tar.bz2
marco-b4dcd38a04c6ab44da5d8ac63b386419c9bda7a4.tar.xz
errors.c: avoid deprecated 'gdk_error_trap...' functions:
avoid deprecated: gdk_error_trap_push gdk_error_trap_pop_ignored gdk_error_trap_pop
Diffstat (limited to 'src/core/errors.c')
-rw-r--r--src/core/errors.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/errors.c b/src/core/errors.c
index 19d2e015..18128097 100644
--- a/src/core/errors.c
+++ b/src/core/errors.c
@@ -28,31 +28,32 @@
#include <errno.h>
#include <stdlib.h>
#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
#include <gtk/gtk.h>
void
meta_error_trap_push (MetaDisplay *display)
{
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}
void
meta_error_trap_pop (MetaDisplay *display,
gboolean last_request_was_roundtrip)
{
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}
void
meta_error_trap_push_with_return (MetaDisplay *display)
{
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}
int
meta_error_trap_pop_with_return (MetaDisplay *display,
gboolean last_request_was_roundtrip)
{
- return gdk_error_trap_pop ();
+ return gdk_x11_display_error_trap_pop (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}