Fix #108356: Group Console with App on Taskbar

Set App Id for the process so our console is grouped on the Task Bar.

Pull Request: https://projects.blender.org/blender/blender/pulls/108397
This commit is contained in:
Harley Acheson 2023-05-29 23:19:12 +02:00 committed by Harley Acheson
parent 30a25a42e6
commit c3b58b5f67
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ GHOST_SystemWin32::GHOST_SystemWin32()
* blurry scaling and enables WM_DPICHANGED to allow us to draw at proper DPI. */
SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
/* Set App Id for the process so our console will be grouped on the Task Bar. */
UTF16_ENCODE(BLENDER_WIN_APPID);
HRESULT result = SetCurrentProcessExplicitAppUserModelID(BLENDER_WIN_APPID_16);
UTF16_UN_ENCODE(BLENDER_WIN_APPID);
/* Check if current keyboard layout uses AltGr and save keylayout ID for
* specialized handling if keys like VK_OEM_*. I.e. french keylayout
* generates #VK_OEM_8 for their exclamation key (key left of right shift). */