aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-10-04 03:48:38 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-10-04 03:48:38 (GMT)
commitc91926cf71dcaaea2cf6e56e74b1de50ff17f6f5 (patch)
tree2016d3cbaf743d8ac7b90d39b1c9b85faa668038 /src/Window.cc
parent9df75ed7a6c70d621895ebacbba4a13afe4ecaed (diff)
downloadfluxbox-c91926cf71dcaaea2cf6e56e74b1de50ff17f6f5.zip
fluxbox-c91926cf71dcaaea2cf6e56e74b1de50ff17f6f5.tar.bz2
fix flickering of shaped windows on focus changes
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