From 56d1bd6f004018fe6900d4fdf7bd9bbbf60ffcef Mon Sep 17 00:00:00 2001 From: Adham Elaraby Date: Sat, 27 Jan 2024 00:11:40 +0100 Subject: [PATCH] Revert "Do not manage non-responding windows" This reverts commit b069fa7e4658f6616221da718b0a3cf959cbd5b0. --- src/dwm-win32.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/dwm-win32.c b/src/dwm-win32.c index a9494f5..0831cea 100644 --- a/src/dwm-win32.c +++ b/src/dwm-win32.c @@ -725,10 +725,6 @@ ismanageable(HWND hwnd) { if (hwnd == 0) return false; - if (IsHungAppWindow(hwnd)) { - return false; - } - if (getclient(hwnd)) return true; @@ -864,12 +860,6 @@ manage(HWND hwnd) { c->iscloaked = iscloaked(hwnd); c->isminimized = IsIconic(hwnd); - // Check if the window is hung - if (IsHungAppWindow(hwnd)) { - unmanage(c); - return NULL; - } - static WINDOWPLACEMENT wp = { .length = sizeof(WINDOWPLACEMENT), .showCmd = SW_RESTORE, @@ -982,18 +972,7 @@ LRESULT CALLBACK barhandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) buttonpress(msg, &MAKEPOINTS(lParam)); break; case WM_TIMER: - // check for hung windows every time the timer runs - // Iterate over all managed windows - for (Client* c = clients; c; c = c->next) { - // Check if the window is hung - if (IsHungAppWindow(c->hwnd)) { - // Unmanage the window - unmanage(c); - } - } - drawbar(); - default: return DefWindowProc(hwnd, msg, wParam, lParam); }