Skip to content

Commit 0dc3927

Browse files
authored
Update dwm-bs.h
1 parent 13adbd5 commit 0dc3927

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dwm-bs/dwm-bs.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,17 @@ void CALLBACK WinEventProc(HWINEVENTHOOK hWinEventHook, DWORD event, HWND hwnd,
144144
{
145145
if (event == EVENT_SYSTEM_FOREGROUND && hwnd != HWNDPrev)
146146
{
147+
// deshabilitar otros atributos
148+
_ATTRIBS_OFF(hwnd);
149+
147150
// Comprobar si la ventana actual es de un proceso excluido
148151
if (IsExcludeHWND(hwnd))
149152
{
150153
return;
151154
}
152155

153-
// Deshabilitar la política en la ventana anterior
156+
// deshabilitar politica de renderizado
154157
_NCRP(hwnd, "Disable");
155-
_ATTRIBS_OFF(hwnd);
156158

157159
// Actualizar HWNDPrev con el valor de la ventana actual
158160
HWNDPrev = hwnd;

0 commit comments

Comments
 (0)