Skip to content

Commit ef56c62

Browse files
authored
🪟 Simplify windowing code, remove clickthrough (#35)
This change simplifies the host window, removing clickthrough and layered support. This allows the host window to be focused when clicked on as expected by users, and removes the overhead imposed by setting layering and input transparency.
1 parent 64f9a53 commit ef56c62

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/FlashCom/View/HostWindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ namespace
5151
LONG extendedStyles{ GetWindowLongW(hWnd, GWL_EXSTYLE) };
5252
LONG newStyles
5353
{
54+
// See https://docs.microsoft.com/en-us/windows/win32/winmsg/window-features/
55+
// and https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
5456
extendedStyles |
55-
WS_EX_LAYERED | // https://docs.microsoft.com/en-us/windows/win32/winmsg/window-features
5657
WS_EX_TOOLWINDOW | // Don't show in taskbar/switcher
57-
WS_EX_TOPMOST | // Always on top
58-
WS_EX_TRANSPARENT // Make layered window clickthrough
58+
WS_EX_TOPMOST // Always on top
5959
};
6060
SetWindowLongW(hWnd, GWL_EXSTYLE, newStyles);
6161

0 commit comments

Comments
 (0)