Skip to content

Commit d851523

Browse files
committed
fix: tray icon visibility
1 parent 7d3deea commit d851523

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

ThreeFingerDrag/ThreeFingerDrag.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,23 +209,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
209209
}
210210
return 0;
211211

212+
// Notify Icon
212213
case WM_USER + 1:
213214
switch (lParam)
214215
{
215216
case WM_LBUTTONDOWN:
216217
case WM_RBUTTONDOWN:
217218
CreateTrayMenu(hWnd);
218219
break;
219-
220-
case WM_CLOSE:
221-
DestroyWindow(hWnd);
222-
break;
223-
224-
case WM_DESTROY:
225-
Shell_NotifyIcon(NIM_DELETE, &nid);
226-
PostQuitMessage(0);
227-
break;
228-
229220
default:
230221
return DefWindowProc(hWnd, message, wParam, lParam);
231222
}
@@ -250,7 +241,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
250241
}
251242
break;
252243
case WM_DESTROY:
253-
Shell_NotifyIcon(NIM_DELETE, &nid);
254244
PostQuitMessage(0);
255245
break;
256246
default:

ThreeFingerDrag/ThreeFingerDrag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
constexpr int kVersionMajor = 1;
1414
constexpr int kVersionMinor = 0;
15-
constexpr int kVersionPatch = 1;
15+
constexpr int kVersionPatch = 2;
1616

1717
inline std::string GetVersionString() {
1818
return std::to_string(kVersionMajor) + "." + std::to_string(kVersionMinor) + "." + std::to_string(kVersionPatch);

0 commit comments

Comments
 (0)