Focus problem.
Problem is simulated on default config 1.3.8.
now no window on desktop 2 has focus.
I've tried to debug the problem. When window is closing (item 9 above) method YFrameWindow *YFrameWindow::findWindow(int flags) is called from YFrameWindow destructor and it returns currently destroing window (itself).
#0 YFrameWindow::findWindow (this=0x7d0510, flags=flags@entry=243) at wmframe.cc:1171#1 0x000000000041fa70 in YWindowManager::focusTop (this=0x6f4a30, f=<optimized out="">) at wmmgr.cc:1640
#2 0x000000000041faf0 in YWindowManager::focusTopWindow (this=0x6f4a30) at wmmgr.cc:1627#3 0x000000000042033f in loseFocus (window=0x7d0510, this=<optimized out="">) at wmmgr.cc:901
#4 YWindowManager::removeClientFrame (this=0x6f4a30, frame=frame@entry=0x7d0510) at wmmgr.cc:2471#5 0x00000000004334af in YFrameWindow::~YFrameWindow (this=0x7d0510, __in_chrg=<optimized out="">) at wmframe.cc:281
#6 0x0000000000433919 in YFrameWindow::~YFrameWindow (this=0x7d0510, __in_chrg=<optimized out>) at wmframe.cc:337#7 0x000000000041aeb4 in YFrameClient::handleUnmap (this=<optimized out="">, unmap=...) at wmclient.cc:409
#8 0x0000000000469908 in YWindow::handleEvent (this=0x7cfca0, event=...) at ywindow.cc:620#9 0x000000000046802c in YXApplication::handleWindowEvent ( this=this@entry=0x7fffffffe4a0, xwindow=<optimized out="">, xev=...) at yxapp.cc:934
`#10 0x00000000004681a2 in YXApplication::handleXEvents (this=0x7fffffffe4a0) at yxapp.cc:889</optimized></optimized></optimized></optimized></optimized>
Several focus bugs have been fixed in the icewm from https://github.com/bbidulock/icewm/