aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-07 17:47:42 (GMT)
committerfluxgen <fluxgen>2003-12-07 17:47:42 (GMT)
commitb8c1d3e5ee0674bfe33d6af78cb6d3ff5cf1d85e (patch)
tree6c19eaecca85315314d50d9cf32cb770b5a7dae7 /src/Window.cc
parentd9e485077fed2aad909cd17970969bc778d6f42c (diff)
downloadfluxbox_pavel-b8c1d3e5ee0674bfe33d6af78cb6d3ff5cf1d85e.zip
fluxbox_pavel-b8c1d3e5ee0674bfe33d6af78cb6d3ff5cf1d85e.tar.bz2
title change signal
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 9dcbf28..0ffaca6 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.247 2003/12/04 21:31:02 fluxgen Exp $ 25// $Id: Window.cc,v 1.248 2003/12/07 17:47:42 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -257,6 +257,7 @@ FluxboxWindow::FluxboxWindow(WinClient &client, BScreen &scr, FbWinFrameTheme &t
257 m_workspacesig(*this), 257 m_workspacesig(*this),
258 m_diesig(*this), 258 m_diesig(*this),
259 m_focussig(*this), 259 m_focussig(*this),
260 m_titlesig(*this),
260 moving(false), resizing(false), shaded(false), 261 moving(false), resizing(false), shaded(false),
261 iconic(false), focused(false), 262 iconic(false), focused(false),
262 stuck(false), m_managed(false), 263 stuck(false), m_managed(false),
@@ -1057,7 +1058,7 @@ void FluxboxWindow::updateFunctions() {
1057 setupWindow(); 1058 setupWindow();
1058} 1059}
1059 1060
1060void FluxboxWindow::updateBlackboxHintsFromClient(WinClient &client) { 1061void FluxboxWindow::updateBlackboxHintsFromClient(const WinClient &client) {
1061 const FluxboxWindow::BlackboxHints *hint = client.getBlackboxHint(); 1062 const FluxboxWindow::BlackboxHints *hint = client.getBlackboxHint();
1062 if (!hint) return; 1063 if (!hint) return;
1063 1064
@@ -1225,7 +1226,7 @@ void FluxboxWindow::iconify() {
1225 if (isIconic()) // no need to iconify if we're already 1226 if (isIconic()) // no need to iconify if we're already
1226 return; 1227 return;
1227 1228
1228 m_windowmenu.hide(); 1229 menu().hide();
1229 iconic = true; 1230 iconic = true;
1230 1231
1231 setState(IconicState); 1232 setState(IconicState);
@@ -2133,20 +2134,11 @@ void FluxboxWindow::propertyNotifyEvent(WinClient &client, Atom atom) {
2133 break; 2134 break;
2134 2135
2135 case XA_WM_ICON_NAME: 2136 case XA_WM_ICON_NAME:
2136 client.updateIconTitle(); 2137 // update icon title and then do normal XA_WM_NAME stuff
2137 updateIconNameFromClient(client); 2138 client.updateIconTitle();
2138 updateIcon();
2139 break;
2140
2141 case XA_WM_NAME: 2139 case XA_WM_NAME:
2142 updateTitleFromClient(client); 2140 updateTitleFromClient(client);
2143 2141 m_titlesig.notify();
2144 if (! iconic)
2145 screen().getWorkspace(m_workspace_number)->update();
2146 else
2147 updateIcon();
2148
2149
2150 break; 2142 break;
2151 2143
2152 case XA_WM_NORMAL_HINTS: { 2144 case XA_WM_NORMAL_HINTS: {
@@ -3028,10 +3020,6 @@ void FluxboxWindow::attachTo(int x, int y) {
3028 m_attaching_tab = 0; 3020 m_attaching_tab = 0;
3029} 3021}
3030 3022
3031void FluxboxWindow::updateIcon() {
3032 //!! TODO: notify listeners about icon name change
3033}
3034
3035void FluxboxWindow::restore(WinClient *client, bool remap) { 3023void FluxboxWindow::restore(WinClient *client, bool remap) {
3036 if (client->m_win != this) 3024 if (client->m_win != this)
3037 return; 3025 return;