aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-06-24 18:19:49 (GMT)
committermarkt <markt>2006-06-24 18:19:49 (GMT)
commita23ad6719725a0290d01ac4bba0ce1905b2069d7 (patch)
treeb3997c14a601117cc2c613e2a8bb79cc6a6a1c4b /src/Window.cc
parent0b730c76b10babe20738067ae7aec5a102d451fe (diff)
downloadfluxbox_pavel-a23ad6719725a0290d01ac4bba0ce1905b2069d7.zip
fluxbox_pavel-a23ad6719725a0290d01ac4bba0ce1905b2069d7.tar.bz2
Make Urgency Hint flash the correct WinClient's tab.
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 1ad789d..145dc8e 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1065,6 +1065,7 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
1065 1065
1066 m_client = &client; 1066 m_client = &client;
1067 m_client->raise(); 1067 m_client->raise();
1068 m_client->focusSig().notify();
1068 titleSig().notify(); 1069 titleSig().notify();
1069 1070
1070#ifdef DEBUG 1071#ifdef DEBUG
@@ -1081,6 +1082,19 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
1081 return false; 1082 return false;
1082} 1083}
1083 1084
1085void FluxboxWindow::setLabelButtonFocus(WinClient &client, bool value) {
1086 // make sure it's in our list
1087 if (client.fbwindow() != this)
1088 return;
1089
1090 frame().setLabelButtonFocus(*m_labelbuttons[&client], value);
1091}
1092
1093void FluxboxWindow::setAttentionState(bool value) {
1094 m_attention_state = value;
1095 m_attentionsig.notify();
1096}
1097
1084bool FluxboxWindow::isGroupable() const { 1098bool FluxboxWindow::isGroupable() const {
1085 if (isResizable() && isMaximizable() && !winClient().isTransient()) 1099 if (isResizable() && isMaximizable() && !winClient().isTransient())
1086 return true; 1100 return true;
@@ -2095,8 +2109,11 @@ void FluxboxWindow::setFocusFlag(bool focus) {
2095 } 2109 }
2096 2110
2097 // did focus change? notify listeners 2111 // did focus change? notify listeners
2098 if (was_focused != focus) 2112 if (was_focused != focus) {
2099 m_focussig.notify(); 2113 m_focussig.notify();
2114 if (m_client)
2115 m_client->focusSig().notify();
2116 }
2100} 2117}
2101 2118
2102 2119