dwm-win32 icon indicating copy to clipboard operation
dwm-win32 copied to clipboard

Do not manage hanging windows

Open nir9 opened this issue 1 year ago • 4 comments

Problem: When dwm-win32 manages non-responding windows it also gets to a non-responding mode

Solution: Avoid managing windows that Windows determines as not responding or windows that are managed by a process that is debugged

nir9 avatar Dec 19 '23 16:12 nir9

If a window is hanged and managed, should we call unmanage()?

prabirshrestha avatar Dec 20 '23 05:12 prabirshrestha

@prabirshrestha good point, I fixed the code with unmanaging as well in case the window is hanged, and also I added a check if the process of the window is being debugged, since this also currently causes dwm to hang

nir9 avatar Jan 14 '24 07:01 nir9

Hey @nir9, I appreciate all the work that has gone into this, while this has improved stability, I can still reproduce crashes randomly using certain features of Zoom meetings, but also 100% of the time upon trying to run a program called ToneLib GFX, based on my initial testing of this PR.

Unsure how to log any information on the cause.

Windows 10 Home 22H2

adham-elaraby avatar Jan 26 '24 23:01 adham-elaraby

@adham-elaraby Thanks, I have recently started my own tiling WM for Windows project, so I don't plan on maintaining this PR anymore.

nir9 avatar Jan 27 '24 07:01 nir9