aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index bad558b..803f911 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1021,41 +1021,6 @@ void Fluxbox::handleClientMessage(XClientMessageEvent &ce) {
1021 winclient->fbwindow()->iconify(); 1021 winclient->fbwindow()->iconify();
1022 if (ce.data.l[0] == NormalState) 1022 if (ce.data.l[0] == NormalState)
1023 winclient->fbwindow()->deiconify(); 1023 winclient->fbwindow()->deiconify();
1024 } else if (ce.message_type == m_fbatoms->getFluxboxChangeWorkspaceAtom()) {
1025 BScreen *screen = searchScreen(ce.window);
1026
1027 if (screen && ce.data.l[0] >= 0 &&
1028 ce.data.l[0] < (signed)screen->numberOfWorkspaces())
1029 screen->changeWorkspaceID(ce.data.l[0]);
1030
1031 } else if (ce.message_type == m_fbatoms->getFluxboxChangeWindowFocusAtom()) {
1032 WinClient *winclient = searchWindow(ce.window);
1033 if (winclient) {
1034 FluxboxWindow *win = winclient->fbwindow();
1035 if (win && win->isVisible())
1036 win->setCurrentClient(*winclient, true);
1037 }
1038 } else if (ce.message_type == m_fbatoms->getFluxboxCycleWindowFocusAtom()) {
1039 BScreen *screen = searchScreen(ce.window);
1040
1041 if (screen) {
1042 if (! ce.data.l[0])
1043 screen->focusControl().prevFocus();
1044 else
1045 screen->focusControl().nextFocus();
1046 }
1047 } else if (ce.message_type == m_fbatoms->getFluxboxChangeAttributesAtom()) {
1048 WinClient *winclient = searchWindow(ce.window);
1049 FluxboxWindow *win = 0;
1050 if (winclient && (win = winclient->fbwindow()) && winclient->validateClient()) {
1051 FluxboxWindow::BlackboxHints net;
1052 net.flags = ce.data.l[0];
1053 net.attrib = ce.data.l[1];
1054 net.workspace = ce.data.l[2];
1055 net.stack = ce.data.l[3];
1056 net.decoration = static_cast<int>(ce.data.l[4]);
1057 win->changeBlackboxHints(net);
1058 }
1059 } else { 1024 } else {
1060 WinClient *winclient = searchWindow(ce.window); 1025 WinClient *winclient = searchWindow(ce.window);
1061 BScreen *screen = searchScreen(ce.window); 1026 BScreen *screen = searchScreen(ce.window);
@@ -1190,8 +1155,6 @@ void Fluxbox::update(FbTk::Subject *changedsub) {
1190 BScreen &screen = client->screen(); 1155 BScreen &screen = client->screen();
1191 1156
1192 screen.removeClient(*client); 1157 screen.removeClient(*client);
1193 // finaly send notify signal
1194 screen.updateNetizenWindowDel(client->window());
1195 1158
1196 // At this point, we trust that this client is no longer in the 1159 // At this point, we trust that this client is no longer in the
1197 // client list of its frame (but it still has reference to the frame) 1160 // client list of its frame (but it still has reference to the frame)
@@ -1720,7 +1683,6 @@ bool Fluxbox::validateClient(const WinClient *client) const {
1720 1683
1721void Fluxbox::updateFocusedWindow(BScreen *screen, BScreen *old_screen) { 1684void Fluxbox::updateFocusedWindow(BScreen *screen, BScreen *old_screen) {
1722 if (screen != 0) { 1685 if (screen != 0) {
1723 screen->updateNetizenWindowFocus();
1724 for (AtomHandlerContainerIt it= m_atomhandler.begin(); 1686 for (AtomHandlerContainerIt it= m_atomhandler.begin();
1725 it != m_atomhandler.end(); it++) { 1687 it != m_atomhandler.end(); it++) {
1726 (*it).first->updateFocusedWindow(*screen, (FocusControl::focusedWindow() ? 1688 (*it).first->updateFocusedWindow(*screen, (FocusControl::focusedWindow() ?
@@ -1730,7 +1692,6 @@ void Fluxbox::updateFocusedWindow(BScreen *screen, BScreen *old_screen) {
1730 } 1692 }
1731 1693
1732 if (old_screen && old_screen != screen) { 1694 if (old_screen && old_screen != screen) {
1733 old_screen->updateNetizenWindowFocus();
1734 for (AtomHandlerContainerIt it= m_atomhandler.begin(); 1695 for (AtomHandlerContainerIt it= m_atomhandler.begin();
1735 it != m_atomhandler.end(); it++) 1696 it != m_atomhandler.end(); it++)
1736 (*it).first->updateFocusedWindow(*old_screen, 0); 1697 (*it).first->updateFocusedWindow(*old_screen, 0);