when i detach a msg query and select minimize under xchat-systray it minimizes the msg query instead of the main xchat dialog. then when i try to restore through the xchat systray it closes xchat all together. i am using xchat 2.4.4-r1 and xchat systray 2.4.5-r2 Reproducible: Always Steps to Reproduce: 1.Run Xchat (make sure you have the systray plugin installed) 2.Connect to a server and /query anyone 3.right click on anyone's name tab and select detach 4.On xchat systray select minimize 5.On xchat systray select restore Actual Results: Xchat closes Expected Results: first instead of minimizing the msg query it shouldve minimized the main xchat dialog. And when you select restore it shouldve restored the xchat dialog instead of closing. i know the xchat version i am using is still masked but im confident that its the xchat systray ebuild than the xchat one
Looking at the source, it looks like xchat-systray issues an "gui hide" command and xchat treats this as a command to hide the window associated with the active session, session being a channel/query/whatever. When all sessions are in one window, this works fine. But when we have multiple windows, we issue an hide command for a window that is then hidden and the focus goes to another window that then receives the show command and things get busted.
Created attachment 66987 [details] backtrace with full debugging symbols
xchat 2.8.1 has support for it, will be in-tree shortly