diff options
| author | Richard M. Stallman | 1993-07-27 08:33:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-27 08:33:44 +0000 |
| commit | a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a (patch) | |
| tree | 0fa8ab38e2ac4a3d287fc0115a127143b3a88217 /src | |
| parent | afe9fae94c5f21562e8cc2ef48dc178e00638c8e (diff) | |
| download | emacs-a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a.tar.gz emacs-a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a.zip | |
(x_iconify_frame): Handle case where frame was invisible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 4005f5a603c..382c93ce82d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4502,6 +4502,14 @@ x_iconify_frame (f) | |||
| 4502 | IconicState. */ | 4502 | IconicState. */ |
| 4503 | x_wm_set_window_state (f, IconicState); | 4503 | x_wm_set_window_state (f, IconicState); |
| 4504 | 4504 | ||
| 4505 | if (!FRAME_VISIBLE_P (f)) | ||
| 4506 | { | ||
| 4507 | /* If the frame was withdrawn, before, we must map it. */ | ||
| 4508 | XMapWindow (XDISPLAY FRAME_X_WINDOW (f)); | ||
| 4509 | if (FRAME_HAS_VERTICAL_SCROLL_BARS (f)) | ||
| 4510 | XMapSubwindows (x_current_display, FRAME_X_WINDOW (f)); | ||
| 4511 | } | ||
| 4512 | |||
| 4505 | f->async_iconified = 1; | 4513 | f->async_iconified = 1; |
| 4506 | #else /* ! defined (HAVE_X11) */ | 4514 | #else /* ! defined (HAVE_X11) */ |
| 4507 | XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f)); | 4515 | XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f)); |