aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-12-10 23:53:28 +0100
committerJan Djärv2011-12-10 23:53:28 +0100
commit7b9d523a07395ecea505be88f45c33d73aea7038 (patch)
treea434ce64661b23273dde74518291ee93c928a9f0 /src
parentb73189c64fa97828b5525f24d0c784a050487eb7 (diff)
downloademacs-7b9d523a07395ecea505be88f45c33d73aea7038.tar.gz
emacs-7b9d523a07395ecea505be88f45c33d73aea7038.zip
* src/xterm.c (x_term_init): Move call to gdk_window_add_filter before
gtk_init. Fixes: debbugs:10100
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 94db6c68605..20fd021a376 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-12-10 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xterm.c (x_term_init): Move call to gdk_window_add_filter before
4 gtk_init (Bug#10100).
5
12011-12-10 Eli Zaretskii <eliz@gnu.org> 62011-12-10 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if 8 * xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if
diff --git a/src/xterm.c b/src/xterm.c
index abe52238415..1f995b3c1a0 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9961,6 +9961,11 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
9961 https://bugzilla.gnome.org/show_bug.cgi?id=563627. */ 9961 https://bugzilla.gnome.org/show_bug.cgi?id=563627. */
9962 id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL 9962 id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL
9963 | G_LOG_FLAG_RECURSION, my_log_handler, NULL); 9963 | G_LOG_FLAG_RECURSION, my_log_handler, NULL);
9964
9965 /* NULL window -> events for all windows go to our function.
9966 Call before gtk_init so Gtk+ event filters comes after our. */
9967 gdk_window_add_filter (NULL, event_handler_gdk, NULL);
9968
9964 gtk_init (&argc, &argv2); 9969 gtk_init (&argc, &argv2);
9965 g_log_remove_handler ("GLib", id); 9970 g_log_remove_handler ("GLib", id);
9966 9971
@@ -9970,9 +9975,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
9970 9975
9971 dpy = DEFAULT_GDK_DISPLAY (); 9976 dpy = DEFAULT_GDK_DISPLAY ();
9972 9977
9973 /* NULL window -> events for all windows go to our function */
9974 gdk_window_add_filter (NULL, event_handler_gdk, NULL);
9975
9976#if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION <= 90 9978#if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION <= 90
9977 /* Load our own gtkrc if it exists. */ 9979 /* Load our own gtkrc if it exists. */
9978 { 9980 {