fix _NET_CLIENT_LIST updating on window close
This commit is contained in:
parent
f3afe787c1
commit
2ef6a7af44
2 changed files with 2 additions and 1 deletions
|
@ -378,7 +378,6 @@ void Ewmh::updateFocusedWindow(BScreen &screen, Window win) {
|
||||||
// The Window Manager should remove the property whenever a window is withdrawn
|
// The Window Manager should remove the property whenever a window is withdrawn
|
||||||
// but it should leave the property in place when it is shutting down
|
// but it should leave the property in place when it is shutting down
|
||||||
void Ewmh::updateClientClose(WinClient &winclient){
|
void Ewmh::updateClientClose(WinClient &winclient){
|
||||||
updateClientList(winclient.screen());
|
|
||||||
if (!winclient.screen().isShuttingdown()) {
|
if (!winclient.screen().isShuttingdown()) {
|
||||||
XDeleteProperty(FbTk::App::instance()->display(), winclient.window(),
|
XDeleteProperty(FbTk::App::instance()->display(), winclient.window(),
|
||||||
m_net_wm_state);
|
m_net_wm_state);
|
||||||
|
|
|
@ -458,6 +458,7 @@ void FocusControl::removeClient(WinClient &client) {
|
||||||
|
|
||||||
m_focused_list.remove(&client);
|
m_focused_list.remove(&client);
|
||||||
m_creation_order_list.remove(&client);
|
m_creation_order_list.remove(&client);
|
||||||
|
client.screen().clientListSig().notify();
|
||||||
|
|
||||||
if (cyc == &client) {
|
if (cyc == &client) {
|
||||||
m_cycling_window = m_cycling_list->end();
|
m_cycling_window = m_cycling_list->end();
|
||||||
|
@ -468,6 +469,7 @@ void FocusControl::removeClient(WinClient &client) {
|
||||||
void FocusControl::removeWindow(Focusable &win) {
|
void FocusControl::removeWindow(Focusable &win) {
|
||||||
m_focused_win_list.remove(&win);
|
m_focused_win_list.remove(&win);
|
||||||
m_creation_order_win_list.remove(&win);
|
m_creation_order_win_list.remove(&win);
|
||||||
|
win.screen().clientListSig().notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FocusControl::shutdown() {
|
void FocusControl::shutdown() {
|
||||||
|
|
Loading…
Reference in a new issue