Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/backend_win/vm_display_idd.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#pragma comment(lib, "d3dcompiler.lib")
#pragma comment(lib, "dwmapi.lib")
#pragma comment(lib, "ole32.lib")
#pragma comment(lib, "imm32.lib")
Comment thread
foresee-io marked this conversation as resolved.

#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
Expand Down Expand Up @@ -1929,6 +1930,8 @@ static DWORD WINAPI idd_window_thread_proc(LPVOID param)
WS_CHILD | WS_VISIBLE,
0, 0, rc.right, rc.bottom,
d->hwnd, NULL, d->hInstance, NULL);
if (d->render_hwnd)
ImmAssociateContextEx(d->render_hwnd, NULL, 0);
}

/* Separate top-level log window */
Expand Down Expand Up @@ -2022,6 +2025,7 @@ static LRESULT CALLBACK idd_wnd_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
CREATESTRUCTW *cs = (CREATESTRUCTW *)lp;
SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR)cs->lpCreateParams);
AddClipboardFormatListener(hwnd);
ImmAssociateContextEx(hwnd, NULL, 0);
return 0;
}

Expand Down