Skip to content

Commit

Permalink
[win32] fix graphics surface windows showing in taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfouilleul committed Jun 19, 2024
1 parent 94ddb75 commit 03dc069
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/graphics/win32_surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ void oc_surface_base_init_for_window(oc_surface_base* surface, oc_window_data* w
int clientWidth = parentRect.right - parentRect.left;
int clientHeight = parentRect.bottom - parentRect.top;

surface->view.hWnd = CreateWindow(viewWindowClass.lpszClassName,
"view_window",
WS_POPUP,
0, 0, clientWidth, clientHeight,
NULL,
0,
viewWindowClass.hInstance,
0);
surface->view.hWnd = CreateWindowEx(
WS_EX_TOOLWINDOW,
viewWindowClass.lpszClassName,
"view_window",
WS_POPUP,
0, 0, clientWidth, clientHeight,
NULL,
0,
viewWindowClass.hInstance,
0);

//NOTE: make the window transparent
{
Expand Down

0 comments on commit 03dc069

Please sign in to comment.