]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-afscreds-20050930
authorMatthew Loar <mloar2@uiuc.edu>
Sat, 1 Oct 2005 05:52:04 +0000 (05:52 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 1 Oct 2005 05:52:04 +0000 (05:52 +0000)
FIXES 21958

For the afscreds program on Windows, if you right click the system tray icon
to display the menu and then click on the taskbar, the menu is not hidden,
but instead is covered by the taskbar.

This is a common issue documented at
http://support.microsoft.com/default.aspx?scid=kb;en-us;135788.

(cherry picked from commit 46e260b9e72925f9f5b2e5cee3159d4c6b02fc05)

src/WINNT/client_creds/window.cpp

index a1afafa8881ff9d59a554fc6a63da7dc84c341f4..1d4364b2724d680cae602959f238f8f700891a22 100644 (file)
@@ -171,11 +171,11 @@ BOOL CALLBACK Main_DlgProc (HWND hDlg, UINT msg, WPARAM wp, LPARAM lp)
                      }
                   lock_ReleaseMutex(&g.credsLock);
                   CheckMenuItem (hm, M_REMIND, MF_BYCOMMAND | ((fRemind) ? MF_CHECKED : MF_UNCHECKED));
-
+                 SetForegroundWindow(hDlg);
                   TrackPopupMenu (GetSubMenu (hmDummy, 0),
                                   TPM_RIGHTALIGN | TPM_RIGHTBUTTON,
                                   pt.x, pt.y, NULL, hDlg, NULL);
-
+                 PostMessage(hDlg, WM_NULL, 0, 0);
                   DestroyMenu (hmDummy);
                   }
                break;