Skip to content

Commit

Permalink
directvt#571 WIP: Drop z-order blabla actions
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Sep 20, 2024
1 parent f881f4c commit e9de1a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/netxs/desktopio/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3813,11 +3813,7 @@ namespace netxs::gui
}
void window_make_focused() { ::SetFocus((HWND)master.hWnd); } // Calls WM_KILLFOCOS(prev) + WM_ACTIVATEAPP(next) + WM_SETFOCUS(next).
void window_make_exposed() { ::SetWindowPos((HWND)master.hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOSENDCHANGING | SWP_NOACTIVATE); }
void window_make_foreground() // Neither ::SetFocus() nor ::SetActiveWindow() can switch focus immediately.
{
::SetForegroundWindow((HWND)master.hWnd);
::AllowSetForegroundWindow(ASFW_ANY);
}
void window_make_foreground() { ::SetForegroundWindow((HWND)master.hWnd); } //::AllowSetForegroundWindow(ASFW_ANY); } // Neither ::SetFocus() nor ::SetActiveWindow() can switch focus immediately.
void window_shutdown() { ::SendMessageW((HWND)master.hWnd, WM_CLOSE, NULL, NULL); }
void window_cleanup() { ::RemoveClipboardFormatListener((HWND)master.hWnd); ::PostQuitMessage(0); }
twod mouse_get_pos() { return twod{ winmsg.pt.x, winmsg.pt.y }; }
Expand Down
1 change: 0 additions & 1 deletion src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,6 @@ namespace netxs::os
os::stdin_fd = fd_t{ ptr::test(::GetStdHandle(STD_INPUT_HANDLE ), os::invalid_fd) };
os::stdout_fd = fd_t{ ptr::test(::GetStdHandle(STD_OUTPUT_HANDLE), os::invalid_fd) };
os::stderr_fd = fd_t{ ptr::test(::GetStdHandle(STD_ERROR_HANDLE ), os::invalid_fd) };
::AllowSetForegroundWindow(ASFW_ANY);
#else
{
auto conmode = -1;
Expand Down

0 comments on commit e9de1a4

Please sign in to comment.