diff options
author | fluxgen <fluxgen> | 2004-06-28 13:33:05 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-06-28 13:33:05 (GMT) |
commit | df68d8d0b09df1aa26b17232cd8501ced20b2c11 (patch) | |
tree | 6087a63b653c351acd2cec9ebaab10c853ab7eb1 | |
parent | 92d37fd50d8461582adbb60909e641eca533d72f (diff) | |
download | fluxbox_lack-df68d8d0b09df1aa26b17232cd8501ced20b2c11.zip fluxbox_lack-df68d8d0b09df1aa26b17232cd8501ced20b2c11.tar.bz2 |
minor stuff
-rw-r--r-- | src/Gnome.cc | 17 | ||||
-rw-r--r-- | src/Gnome.hh | 4 |
2 files changed, 17 insertions, 4 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index a01e79b..18bd491 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Gnome.cc,v 1.35 2004/06/07 11:46:04 rathnor Exp $ | 22 | // $Id: Gnome.cc,v 1.36 2004/06/28 13:33:05 fluxgen Exp $ |
23 | 23 | ||
24 | #include "Gnome.hh" | 24 | #include "Gnome.hh" |
25 | 25 | ||
@@ -131,6 +131,18 @@ void Gnome::setupFrame(FluxboxWindow &win) { | |||
131 | 131 | ||
132 | } | 132 | } |
133 | 133 | ||
134 | |||
135 | bool Gnome::propertyNotify(WinClient &winclient, Atom the_property) { | ||
136 | if (the_property == m_gnome_wm_win_state) { | ||
137 | #ifdef DEBUG | ||
138 | cerr<<__FILE__<<"("<<__FUNCTION__<<"): _WIN_STATE"<<endl; | ||
139 | #endif // DEBUG | ||
140 | return true; | ||
141 | } | ||
142 | return false; | ||
143 | } | ||
144 | |||
145 | |||
134 | void Gnome::updateClientList(BScreen &screen) { | 146 | void Gnome::updateClientList(BScreen &screen) { |
135 | size_t num=0; | 147 | size_t num=0; |
136 | 148 | ||
@@ -255,10 +267,11 @@ void Gnome::updateState(FluxboxWindow &win) { | |||
255 | 267 | ||
256 | FluxboxWindow::ClientList::iterator client_it = win.clientList().begin(); | 268 | FluxboxWindow::ClientList::iterator client_it = win.clientList().begin(); |
257 | FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end(); | 269 | FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end(); |
258 | for (; client_it != client_it_end; ++client_it) | 270 | for (; client_it != client_it_end; ++client_it) { |
259 | (*client_it)->changeProperty(m_gnome_wm_win_state, | 271 | (*client_it)->changeProperty(m_gnome_wm_win_state, |
260 | XA_CARDINAL, 32, | 272 | XA_CARDINAL, 32, |
261 | PropModeReplace, (unsigned char *)&state, 1); | 273 | PropModeReplace, (unsigned char *)&state, 1); |
274 | } | ||
262 | } | 275 | } |
263 | 276 | ||
264 | void Gnome::updateLayer(FluxboxWindow &win) { | 277 | void Gnome::updateLayer(FluxboxWindow &win) { |
diff --git a/src/Gnome.hh b/src/Gnome.hh index d0968cf..d8ed412 100644 --- a/src/Gnome.hh +++ b/src/Gnome.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Gnome.hh,v 1.11 2004/01/19 18:27:17 fluxgen Exp $ | 22 | // $Id: Gnome.hh,v 1.12 2004/06/28 13:33:05 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef GNOME_HH | 24 | #ifndef GNOME_HH |
25 | #define GNOME_HH | 25 | #define GNOME_HH |
@@ -85,7 +85,7 @@ public: | |||
85 | // ignore these ones | 85 | // ignore these ones |
86 | void updateFrameClose(FluxboxWindow &win) {} | 86 | void updateFrameClose(FluxboxWindow &win) {} |
87 | void updateClientClose(WinClient &winclient) {} | 87 | void updateClientClose(WinClient &winclient) {} |
88 | bool propertyNotify(WinClient &winclient, Atom the_property) { return false; } | 88 | bool propertyNotify(WinClient &winclient, Atom the_property); |
89 | 89 | ||
90 | private: | 90 | private: |
91 | void setLayer(FluxboxWindow *win, int layer); | 91 | void setLayer(FluxboxWindow *win, int layer); |