Skip to content

Commit

Permalink
Revert "Do not manage non-responding windows"
Browse files Browse the repository at this point in the history
This reverts commit b069fa7.
  • Loading branch information
adham-elaraby committed Jan 26, 2024
1 parent cc4d4eb commit 56d1bd6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/dwm-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,6 @@ ismanageable(HWND hwnd) {
if (hwnd == 0)
return false;

if (IsHungAppWindow(hwnd)) {
return false;
}

if (getclient(hwnd))
return true;

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 56d1bd6

Please sign in to comment.