diff options
| author | Richard M. Stallman | 1997-05-31 07:37:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-31 07:37:09 +0000 |
| commit | 06c488fde264cbddd9d87ca8b746d7a6694e48fd (patch) | |
| tree | 14a62533151b36b93f3d6dde43a458f2c398439f /src | |
| parent | 4fe2b2b6c32d29be43c1b7fbe8286f45ff070e2f (diff) | |
| download | emacs-06c488fde264cbddd9d87ca8b746d7a6694e48fd.tar.gz emacs-06c488fde264cbddd9d87ca8b746d7a6694e48fd.zip | |
(process_expose_from_menu, XTread_socket):
Set has_been_visible field.
(x_make_frame_visible): Don't do XMoveWindow unles has_been_visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 76ebbe641d2..e1b7937bc2c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3522,6 +3522,7 @@ process_expose_from_menu (event) | |||
| 3522 | { | 3522 | { |
| 3523 | f->async_visible = 1; | 3523 | f->async_visible = 1; |
| 3524 | f->async_iconified = 0; | 3524 | f->async_iconified = 0; |
| 3525 | f->output_data.x->has_been_visible = 1; | ||
| 3525 | SET_FRAME_GARBAGED (f); | 3526 | SET_FRAME_GARBAGED (f); |
| 3526 | } | 3527 | } |
| 3527 | else | 3528 | else |
| @@ -3956,6 +3957,7 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 3956 | { | 3957 | { |
| 3957 | f->async_visible = 1; | 3958 | f->async_visible = 1; |
| 3958 | f->async_iconified = 0; | 3959 | f->async_iconified = 0; |
| 3960 | f->output_data.x->has_been_visible = 1; | ||
| 3959 | SET_FRAME_GARBAGED (f); | 3961 | SET_FRAME_GARBAGED (f); |
| 3960 | } | 3962 | } |
| 3961 | else | 3963 | else |
| @@ -4036,6 +4038,7 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 4036 | { | 4038 | { |
| 4037 | f->async_visible = 1; | 4039 | f->async_visible = 1; |
| 4038 | f->async_iconified = 0; | 4040 | f->async_iconified = 0; |
| 4041 | f->output_data.x->has_been_visible = 1; | ||
| 4039 | 4042 | ||
| 4040 | /* wait_reading_process_input will notice this and update | 4043 | /* wait_reading_process_input will notice this and update |
| 4041 | the frame's display structures. */ | 4044 | the frame's display structures. */ |
| @@ -5676,7 +5679,8 @@ x_make_frame_visible (f) | |||
| 5676 | that is 3 pixels too low. Perhaps that's really the border width. */ | 5679 | that is 3 pixels too low. Perhaps that's really the border width. */ |
| 5677 | 5680 | ||
| 5678 | if (! FRAME_VISIBLE_P (f) | 5681 | if (! FRAME_VISIBLE_P (f) |
| 5679 | && f->output_data.x->win_gravity == NorthWestGravity) | 5682 | && f->output_data.x->win_gravity == NorthWestGravity |
| 5683 | && f->output_data.x->has_been_visible) | ||
| 5680 | { | 5684 | { |
| 5681 | BLOCK_INPUT; | 5685 | BLOCK_INPUT; |
| 5682 | 5686 | ||