]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tooltips pulling Emacs window to front on windows-nt, bug #17408.
authorJarek Czekalski <jarekczek@poczta.onet.pl>
Tue, 6 May 2014 16:00:30 +0000 (18:00 +0200)
committerJarek Czekalski <jarekczek@poczta.onet.pl>
Tue, 6 May 2014 16:00:30 +0000 (18:00 +0200)
  * w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to
  SetWindowPos invocations.

src/ChangeLog
src/w32fns.c

index 9839b6a214676587caf3e9ab3f74a8a8f4077888..720ab11135fc5635c40ed17a58750460f543dd81 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-06  Jarek Czekalski  <jarekczek@poczta.onet.pl>
+
+       Stop tooltips pulling Emacs window to front (Bug#17408).
+       * w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to
+       SetWindowPos invocations.
+
 2014-05-05  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
index ffe63a3cf2decea3c288e0b912a3c5a236dca39b..630059c38f10faef877bff9e24674e4343f3f83c 100644 (file)
@@ -6036,12 +6036,13 @@ Text larger than the specified size is clipped.  */)
          /* Put tooltip in topmost group and in position.  */
          SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST,
                        root_x, root_y, 0, 0,
-                       SWP_NOSIZE | SWP_NOACTIVATE);
+                       SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
 
          /* Ensure tooltip is on top of other topmost windows (eg menus).  */
          SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP,
                        0, 0, 0, 0,
-                       SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+                       SWP_NOMOVE | SWP_NOSIZE
+                       | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
 
          unblock_input ();
          goto start_timer;
@@ -6239,12 +6240,13 @@ Text larger than the specified size is clipped.  */)
     SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST,
                  root_x, root_y,
                  rect.right - rect.left + FRAME_COLUMN_WIDTH (f),
-                 rect.bottom - rect.top, SWP_NOACTIVATE);
+                 rect.bottom - rect.top, SWP_NOACTIVATE | SWP_NOOWNERZORDER);
 
     /* Ensure tooltip is on top of other topmost windows (eg menus).  */
     SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP,
                  0, 0, 0, 0,
-                 SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+                 SWP_NOMOVE | SWP_NOSIZE
+                 | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
 
     /* Let redisplay know that we have made the frame visible already.  */
     SET_FRAME_VISIBLE (f, 1);