all repos — fluxbox @ eada20a2c01bf8b2bac24c5e47661122b7aa8fc4

custom fork of the fluxbox windowmanager

fix signaling when changing tabs
markt markt
commit

eada20a2c01bf8b2bac24c5e47661122b7aa8fc4

parent

bed4ba4d65dba0d12a8352a46436f25ce3d0e7d1

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -996,6 +996,7 @@ // in case the window is being destroyed, but this should never happen

if (!button) return false; + WinClient *old = m_client; m_client = &client; m_client->raise(); m_client->focusSig().notify();

@@ -1009,7 +1010,11 @@ // frame focused doesn't necessarily mean input focused

frame().setLabelButtonFocus(*button); frame().setShapingClient(&client, false); - return setinput && focus(); + bool ret = setinput && focus(); + if (setinput) + // restore old client until focus event comes + m_client = old; + return ret; } bool FluxboxWindow::isGroupable() const {