Ken Thomases : winemac: Skip minimized windows when looking for z-ordering neighbor.

Alexandre Julliard julliard at winehq.org
Fri Aug 30 11:00:37 CDT 2013


Module: wine
Branch: master
Commit: 315b39ec8d3ecc5b1324253046e640e48188bc1d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=315b39ec8d3ecc5b1324253046e640e48188bc1d

Author: Ken Thomases <ken at codeweavers.com>
Date:   Fri Aug 30 00:00:42 2013 -0500

winemac: Skip minimized windows when looking for z-ordering neighbor.

---

 dlls/winemac.drv/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index c4da870..5991290 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -600,14 +600,14 @@ static void show_window(struct macdrv_win_data *data)
 
     /* find window that this one must be after */
     prev = GetWindow(data->hwnd, GW_HWNDPREV);
-    while (prev && !((GetWindowLongW(prev, GWL_STYLE) & WS_VISIBLE) &&
+    while (prev && !((GetWindowLongW(prev, GWL_STYLE) & (WS_VISIBLE | WS_MINIMIZE)) == WS_VISIBLE &&
                      (prev_window = macdrv_get_cocoa_window(prev, TRUE))))
         prev = GetWindow(prev, GW_HWNDPREV);
     if (!prev_window)
     {
         /* find window that this one must be before */
         next = GetWindow(data->hwnd, GW_HWNDNEXT);
-        while (next && !((GetWindowLongW(next, GWL_STYLE) & WS_VISIBLE) &&
+        while (next && !((GetWindowLongW(next, GWL_STYLE) & (WS_VISIBLE | WS_MINIMIZE)) == WS_VISIBLE &&
                          (next_window = macdrv_get_cocoa_window(next, TRUE))))
             next = GetWindow(next, GW_HWNDNEXT);
     }




More information about the wine-cvs mailing list