aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Window.cc b/src/Window.cc
index cd0e708..4606da5 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -409,7 +409,7 @@ void FluxboxWindow::init() {
409 409
410 associateClient(*m_client); 410 associateClient(*m_client);
411 411
412 frame().setLabelButtonFocus(*m_labelbuttons[m_client]); 412 frame().setFocusTitle(title());
413 413
414 // redirect events from frame to us 414 // redirect events from frame to us
415 frame().setEventHandler(*this); 415 frame().setEventHandler(*this);
@@ -987,16 +987,17 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
987 if (old) 987 if (old)
988 old->focusSig().notify(); 988 old->focusSig().notify();
989 } 989 }
990 if (old != &client)
991 titleSig().notify();
992 990
993#ifdef DEBUG 991#ifdef DEBUG
994 cerr<<"FluxboxWindow::"<<__FUNCTION__<<": labelbutton[client] = "<< 992 cerr<<"FluxboxWindow::"<<__FUNCTION__<<": labelbutton[client] = "<<
995 button<<endl; 993 button<<endl;
996#endif // DEBUG 994#endif // DEBUG
997 // frame focused doesn't necessarily mean input focused 995
998 frame().setLabelButtonFocus(*button); 996 if (old != &client) {
999 frame().setShapingClient(&client, false); 997 titleSig().notify();
998 frame().setFocusTitle(title());
999 frame().setShapingClient(&client, false);
1000 }
1000 return ret; 1001 return ret;
1001} 1002}
1002 1003