diff options
| author | Joakim Verona | 2011-12-28 11:34:15 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-12-28 11:34:15 +0100 |
| commit | 2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f (patch) | |
| tree | 034e65ef002631d0aba8fc1a41e9984fc557e630 /src/xterm.c | |
| parent | bb29f044aa967831cd664c54eba0de0c701436ce (diff) | |
| parent | d23ab8e8726ecb7e3554644857b4a58e5f7408f1 (diff) | |
| download | emacs-2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f.tar.gz emacs-2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f.zip | |
upstream
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 8171fe7738e..3c37b2110d4 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3326,7 +3326,7 @@ x_scroll_run (struct window *w, struct run *run) | |||
| 3326 | } | 3326 | } |
| 3327 | else | 3327 | else |
| 3328 | { | 3328 | { |
| 3329 | /* Scolling down. Make sure we don't copy over the mode line. | 3329 | /* Scrolling down. Make sure we don't copy over the mode line. |
| 3330 | at the bottom. */ | 3330 | at the bottom. */ |
| 3331 | if (to_y + run->height > bottom_y) | 3331 | if (to_y + run->height > bottom_y) |
| 3332 | height = bottom_y - to_y; | 3332 | height = bottom_y - to_y; |
| @@ -5160,7 +5160,7 @@ x_scroll_bar_remove (struct scroll_bar *bar) | |||
| 5160 | XDestroyWindow (FRAME_X_DISPLAY (f), bar->x_window); | 5160 | XDestroyWindow (FRAME_X_DISPLAY (f), bar->x_window); |
| 5161 | #endif | 5161 | #endif |
| 5162 | 5162 | ||
| 5163 | /* Disassociate this scroll bar from its window. */ | 5163 | /* Dissociate this scroll bar from its window. */ |
| 5164 | XWINDOW (bar->window)->vertical_scroll_bar = Qnil; | 5164 | XWINDOW (bar->window)->vertical_scroll_bar = Qnil; |
| 5165 | 5165 | ||
| 5166 | UNBLOCK_INPUT; | 5166 | UNBLOCK_INPUT; |
| @@ -9978,6 +9978,11 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 9978 | #ifdef HAVE_CLUTTER | 9978 | #ifdef HAVE_CLUTTER |
| 9979 | gtk_clutter_init (&argc, &argv2); | 9979 | gtk_clutter_init (&argc, &argv2); |
| 9980 | #else | 9980 | #else |
| 9981 | |||
| 9982 | /* NULL window -> events for all windows go to our function. | ||
| 9983 | Call before gtk_init so Gtk+ event filters comes after our. */ | ||
| 9984 | gdk_window_add_filter (NULL, event_handler_gdk, NULL); | ||
| 9985 | |||
| 9981 | gtk_init (&argc, &argv2); | 9986 | gtk_init (&argc, &argv2); |
| 9982 | #endif | 9987 | #endif |
| 9983 | g_log_remove_handler ("GLib", id); | 9988 | g_log_remove_handler ("GLib", id); |
| @@ -9988,9 +9993,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 9988 | 9993 | ||
| 9989 | dpy = DEFAULT_GDK_DISPLAY (); | 9994 | dpy = DEFAULT_GDK_DISPLAY (); |
| 9990 | 9995 | ||
| 9991 | /* NULL window -> events for all windows go to our function */ | ||
| 9992 | gdk_window_add_filter (NULL, event_handler_gdk, NULL); | ||
| 9993 | |||
| 9994 | #if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION <= 90 | 9996 | #if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION <= 90 |
| 9995 | /* Load our own gtkrc if it exists. */ | 9997 | /* Load our own gtkrc if it exists. */ |
| 9996 | { | 9998 | { |