diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index 168ef1e3b9d..e4ff2b41806 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3337,7 +3337,9 @@ run_window_configuration_change_hook (struct frame *f) | |||
| 3337 | = Fdefault_value (Qwindow_configuration_change_hook); | 3337 | = Fdefault_value (Qwindow_configuration_change_hook); |
| 3338 | XSETFRAME (frame, f); | 3338 | XSETFRAME (frame, f); |
| 3339 | 3339 | ||
| 3340 | if (NILP (Vrun_hooks) || !(f->official)) | 3340 | if (NILP (Vrun_hooks) |
| 3341 | || !(f->can_x_set_window_size) | ||
| 3342 | || !(f->can_run_window_configuration_change_hook)) | ||
| 3341 | return; | 3343 | return; |
| 3342 | 3344 | ||
| 3343 | /* Use the right buffer. Matters when running the local hooks. */ | 3345 | /* Use the right buffer. Matters when running the local hooks. */ |
| @@ -6204,8 +6206,8 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6204 | call1 (Qrecord_window_buffer, window); | 6206 | call1 (Qrecord_window_buffer, window); |
| 6205 | } | 6207 | } |
| 6206 | 6208 | ||
| 6207 | /* Consider frame unofficial, temporarily. */ | 6209 | /* Disallow x_set_window_size, temporarily. */ |
| 6208 | f->official = false; | 6210 | f->can_x_set_window_size = false; |
| 6209 | /* The mouse highlighting code could get screwed up | 6211 | /* The mouse highlighting code could get screwed up |
| 6210 | if it runs during this. */ | 6212 | if it runs during this. */ |
| 6211 | block_input (); | 6213 | block_input (); |
| @@ -6414,9 +6416,9 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6414 | ++n; | 6416 | ++n; |
| 6415 | } | 6417 | } |
| 6416 | 6418 | ||
| 6417 | /* Make frame official again and apply frame size changes if | 6419 | /* Allow x_set_window_size again and apply frame size changes if |
| 6418 | needed. */ | 6420 | needed. */ |
| 6419 | f->official = true; | 6421 | f->can_x_set_window_size = true; |
| 6420 | adjust_frame_size (f, -1, -1, 1, 0, Qnil); | 6422 | adjust_frame_size (f, -1, -1, 1, 0, Qnil); |
| 6421 | 6423 | ||
| 6422 | adjust_frame_glyphs (f); | 6424 | adjust_frame_glyphs (f); |