aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJuanma Barranquero2014-04-19 01:36:51 +0200
committerJuanma Barranquero2014-04-19 01:36:51 +0200
commitbba633792b813249a47dde828cbf84cdb946ba60 (patch)
treee320e5217ad3dc878e49fb86be7297a5cef60e5f /src/xterm.c
parentf0496348d1b9b1f2fff9e4265f51cbdc77eb40dc (diff)
parent2a2e6726d1f7031d89fd6740e5b167476267f778 (diff)
downloademacs-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.c9
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
8900x_make_frame_visible (struct frame *f) 8900x_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