Changeset 105
- Timestamp:
- Sep 24, 2017, 5:09:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/taskbar.c ¶
r102 r105 1040 1040 (WinQuerySwitchEntry 1041 1041 (WinQuerySwitchHandle(pbData->hwndFirstItem, 0), &swctl1stItem), 1042 swctl.bProgType == swctl1stItem.bProgType)) 1042 (swctl.bProgType == 0 || swctl1stItem.bProgType == 0 || 1043 swctl.bProgType == swctl1stItem.bProgType))) 1043 1044 hwndBtnSameHmte = hwndNext; 1044 1045 WinEndEnumWindows(henum); … … 1430 1431 // 0xFFFF means errors in getting object title, don't make further attempts 1431 1432 if (hwndBtnSameHmte != 0 && pbData->pszObjName == NULL 1432 1433 && pbData->usObjHandle != 0xFFFF) { 1433 1434 if (ulFunc != 4 && swctl.bProgType == PROG_PM 1434 1435 && !IsWPSPid(swctl.idProcess)) { 1435 1436 WinPostMsg(pbData->hwndFirstItem, atomGetProcCmd, 1436 1437 0, mp2); … … 1864 1865 case LSWM_MOUSEOVERBTN:{ 1865 1866 BTNDATA *pbtnData; 1866 1867 HWND hwndOldOver; 1867 1868 1868 1869 hwndOldOver = hwndMouseOver; … … 1901 1902 } 1902 1903 #ifndef XWORKPLACE 1903 1904 WinStartTimer(plswData->hab, hwnd, TSKHIDEDELAYTIMERID, TSKHIDEDELAYINTERVAL); 1904 1905 #endif 1905 1906 break; … … 2193 2194 usOldActive = usHswActive; 2194 2195 hwndActive = WinQueryActiveWindow(HWND_DESKTOP); 2195 usHswActive = WinQuerySwitchHandle(hwndActive, 0) & 0xFFFF; 2196 if (usHswActive != usOldActive) { 2197 hwndHsw = GetBtnFromHsw(hwnd, usOldActive); 2196 usHswActive = WinQuerySwitchHandle(hwndActive, 0) & 0xFFFF; 2197 if (usHswActive != usOldActive) { 2198 WinInvalidateRect(hwnd, NULL, TRUE); 2199 /*hwndHsw = GetBtnFromHsw(hwnd, usOldActive); 2198 2200 WinInvalidateRect(IsWindowClass(hwndHsw, "#3") ? hwndHsw : 2199 2201 WinQueryWindow(hwndHsw, QW_OWNER), NULL, … … 2202 2204 WinInvalidateRect(IsWindowClass(hwndHsw, "#3") ? hwndHsw : 2203 2205 WinQueryWindow(hwndHsw, QW_OWNER), NULL, 2204 FALSE); 2206 FALSE); */ 2205 2207 } 2206 2208 break; … … 2214 2216 RECTL rcl; 2215 2217 ULONG fl = SWP_SHOW; 2216 2218 BTNDATA *pbtnData; 2219 static HWND groupmenuhwnd = 0; 2220 2221 if ((pbtnData = WinQueryWindowPtr(hwndMouseOver, 0)) != NULL && 2222 pbtnData->hwndSubWinMenu != 0) 2223 groupmenuhwnd = pbtnData->hwndSubWinMenu; 2224 if (!WinIsWindow(plswData->hab, groupmenuhwnd)) 2225 groupmenuhwnd = 0; 2217 2226 if (!WinIsWindowVisible(plswData->hwndMenu) && 2218 !WinIsWindowVisible(plswData->hwndTaskMenu)) 2227 !WinIsWindowVisible(plswData->hwndTaskMenu) && 2228 !WinIsWindowVisible(groupmenuhwnd)) 2219 2229 fl = SWP_ZORDER; 2220 2230 WinQueryWindowRect(plswData->hwndTaskBar, &rcl); … … 2223 2233 usOldY = ptl.y; 2224 2234 if (ptl.y > 2 * cyTskBar && ptl.y < cyScreen - 2 * cyTskBar) { 2225 WinSetWindowPos(plswData->hwndTaskBar, 2226 HWND_BOTTOM, 0, 0, 0, 0, 2227 (plswData->Settings.bTaskBarAlwaysVisible ? fl : 2228 SWP_HIDE)); 2229 WinInvalidateRect(plswData->hwndTaskBar, NULL, TRUE); 2235 if (!WinIsWindowVisible(plswData->hwndMenu) && 2236 !WinIsWindowVisible(plswData->hwndTaskMenu)&& 2237 !WinIsWindowVisible(groupmenuhwnd)) { 2238 WinSetWindowPos(plswData->hwndTaskBar, 2239 HWND_BOTTOM, 0, 0, 0, 0, 2240 (plswData->Settings.bTaskBarAlwaysVisible ? fl : 2241 SWP_HIDE)); 2242 WinInvalidateRect(plswData->hwndTaskBar, NULL, TRUE); 2243 } 2230 2244 } 2231 2245 }
Note:
See TracChangeset
for help on using the changeset viewer.