]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTmouse_position): Exit the loop if child == win.
authorRichard M. Stallman <rms@gnu.org>
Wed, 22 Nov 1995 12:38:53 +0000 (12:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 22 Nov 1995 12:38:53 +0000 (12:38 +0000)
(x_iconify_frame): Call FRAME_SAMPLE_VISIBILITY.

src/xterm.c

index f1f312a55f528a17fcca1069aa58059d43e5d6ff..906709fe99e79ba30cbf1bc8ce03f9655cd8ea31 100644 (file)
@@ -2354,7 +2354,7 @@ XTmouse_position (fp, insist, bar_window, part, x, y, time)
                                       /* Child of win.  */
                                       &child);
 
-               if (child == None)
+               if (child == None || child == win)
                  break;
 
                win = child;
@@ -5454,6 +5454,8 @@ x_iconify_frame (f)
 
   BLOCK_INPUT;
 
+  FRAME_SAMPLE_VISIBILITY (f);
+
   type = x_icon_type (f);
   if (!NILP (type))
     x_bitmap_icon (f, type);