Skip to content

Commit 4410840

Browse files
Merge pull request #152 from GoXLR-on-Linux/dev-1.0.5
Set the correct Invisible window style, and menu position.
2 parents 149d3b5 + 661059e commit 4410840

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

daemon/src/tray/windows.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ use windows::Win32::UI::WindowsAndMessaging::{
2828
DispatchMessageW, GetMessageW, GetWindowLongPtrW, RegisterClassW, RegisterWindowMessageW,
2929
SetMenuInfo, SetTimer, SetWindowLongPtrW, TranslateMessage, CREATESTRUCTW, CS_HREDRAW,
3030
CS_VREDRAW, CW_USEDEFAULT, GWLP_USERDATA, HICON, HMENU, MENUINFO, MF_POPUP, MF_SEPARATOR,
31-
MF_STRING, MIM_APPLYTOSUBMENUS, MIM_STYLE, MNS_NOTIFYBYPOS, WINDOW_EX_STYLE, WM_CREATE,
32-
WM_NCDESTROY, WM_USER, WNDCLASSW, WS_OVERLAPPEDWINDOW,
31+
MF_STRING, MIM_APPLYTOSUBMENUS, MIM_STYLE, MNS_NOTIFYBYPOS, WINDOW_EX_STYLE, WINDOW_STYLE,
32+
WM_CREATE, WM_NCDESTROY, WM_USER, WNDCLASSW,
3333
};
3434

3535
use goxlr_ipc::PathTypes;
@@ -148,7 +148,7 @@ fn create_hwnd(proc: Rc<Box<dyn WindowProc>>) -> Result<HWND> {
148148
WINDOW_EX_STYLE(0),
149149
window_class.lpszClassName,
150150
lp_sz_window_name,
151-
WS_OVERLAPPEDWINDOW,
151+
WINDOW_STYLE(0),
152152
CW_USEDEFAULT,
153153
CW_USEDEFAULT,
154154
CW_USEDEFAULT,
@@ -341,7 +341,7 @@ impl WindowProc for GoXLRWindowProc {
341341
// Create the menu at the coordinates of the mouse.
342342
TrackPopupMenu(
343343
self.menu,
344-
TRACK_POPUP_MENU_FLAGS(0),
344+
TPM_BOTTOMALIGN | TPM_LEFTALIGN,
345345
point.x,
346346
point.y,
347347
0,

0 commit comments

Comments
 (0)