diff options
| author | Juanma Barranquero | 2014-04-19 01:36:51 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2014-04-19 01:36:51 +0200 |
| commit | bba633792b813249a47dde828cbf84cdb946ba60 (patch) | |
| tree | e320e5217ad3dc878e49fb86be7297a5cef60e5f /src/xterm.c | |
| parent | f0496348d1b9b1f2fff9e4265f51cbdc77eb40dc (diff) | |
| parent | 2a2e6726d1f7031d89fd6740e5b167476267f778 (diff) | |
| download | emacs-bba633792b813249a47dde828cbf84cdb946ba60.tar.gz emacs-bba633792b813249a47dde828cbf84cdb946ba60.zip | |
Merge from emacs-24; up to 2014-04-16T15:28:06Z!eggert@cs.ucla.edu
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index dd71a8a1986..85daee66717 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8900,6 +8900,7 @@ void | |||
| 8900 | x_make_frame_visible (struct frame *f) | 8900 | x_make_frame_visible (struct frame *f) |
| 8901 | { | 8901 | { |
| 8902 | int original_top, original_left; | 8902 | int original_top, original_left; |
| 8903 | int tries = 0; | ||
| 8903 | 8904 | ||
| 8904 | block_input (); | 8905 | block_input (); |
| 8905 | 8906 | ||
| @@ -9007,7 +9008,13 @@ x_make_frame_visible (struct frame *f) | |||
| 9007 | /* Force processing of queued events. */ | 9008 | /* Force processing of queued events. */ |
| 9008 | x_sync (f); | 9009 | x_sync (f); |
| 9009 | 9010 | ||
| 9010 | /* This hack is still in use at least for Cygwin. See | 9011 | /* If on another desktop, the deiconify/map may be ignored and the |
| 9012 | frame never becomes visible. XMonad does this. | ||
| 9013 | Prevent an endless loop. */ | ||
| 9014 | if (FRAME_ICONIFIED_P (f) && ++tries > 100) | ||
| 9015 | break; | ||
| 9016 | |||
| 9017 | /* This hack is still in use at least for Cygwin. See | ||
| 9011 | http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00351.html. | 9018 | http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00351.html. |
| 9012 | 9019 | ||
| 9013 | Machines that do polling rather than SIGIO have been | 9020 | Machines that do polling rather than SIGIO have been |