diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index b50ae71df8c..ac462624495 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -124,6 +124,9 @@ static int window_initialized; | |||
| 124 | /* Hook to run when window config changes. */ | 124 | /* Hook to run when window config changes. */ |
| 125 | static Lisp_Object Qwindow_configuration_change_hook; | 125 | static Lisp_Object Qwindow_configuration_change_hook; |
| 126 | 126 | ||
| 127 | /* If non-nil, run_window_configuration_change_hook does nothing. */ | ||
| 128 | Lisp_Object inhibit_window_configuration_change_hook; | ||
| 129 | |||
| 127 | /* Used by the function window_scroll_pixel_based */ | 130 | /* Used by the function window_scroll_pixel_based */ |
| 128 | static int window_scroll_pixel_based_preserve_x; | 131 | static int window_scroll_pixel_based_preserve_x; |
| 129 | static int window_scroll_pixel_based_preserve_y; | 132 | static int window_scroll_pixel_based_preserve_y; |
| @@ -2896,7 +2899,7 @@ run_window_configuration_change_hook (struct frame *f) | |||
| 2896 | = Fdefault_value (Qwindow_configuration_change_hook); | 2899 | = Fdefault_value (Qwindow_configuration_change_hook); |
| 2897 | XSETFRAME (frame, f); | 2900 | XSETFRAME (frame, f); |
| 2898 | 2901 | ||
| 2899 | if (NILP (Vrun_hooks)) | 2902 | if (NILP (Vrun_hooks) || !NILP (inhibit_window_configuration_change_hook)) |
| 2900 | return; | 2903 | return; |
| 2901 | 2904 | ||
| 2902 | /* Use the right buffer. Matters when running the local hooks. */ | 2905 | /* Use the right buffer. Matters when running the local hooks. */ |