How to disable window transitions on Windows 11?

Leonardo 96 Reputation points
2023-02-17T15:15:18.7533333+00:00

I have been able to disable it on Windows 10 with the following winapi:

   BOOL disable = TRUE;
   DwmSetWindowAttribute(hwnd, DWMWA_TRANSITIONS_FORCEDISABLED, &disable, sizeof(disable));

But its not working on Windows 11.

I'm referring to this transparent glass effect seen at the bottom:

Windows 10:

NVIDIA_Share_xL16Znb0hc

Windows 11:

AnyDesk_urN1CueGLe

Windows development Windows API - Win32
Developer technologies C++
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2023-03-03T06:56:48.9933333+00:00

    Hi @Leonardo

    Welcome to Microsoft Q&A!

    The window transition on Windows 11 is actually the "snap assist window" which is a new feature implemented on Win11. This can be controlled in the control panel by following instructions: Settings -> System -> Multitasking -> Snap windows. Select the "On"/"Off" button to enable/disable this feature on Win11.

    There seems to be no way to control this in programming on win11. One possible way is to set the registry key to enable/disable this feature: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "SnapAssist"=dword:00000000 Set 0 to disable this feature and set 1 to enable it.

    This may need restart or sign out/sign in to take effect.

    Thank you.

    Junjie


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.