minor stuff
fluxgen fluxgen
2 files changed,
17 insertions(+),
4 deletions(-)
M
src/Gnome.cc
→
src/Gnome.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.cc,v 1.35 2004/06/07 11:46:04 rathnor Exp $ +// $Id: Gnome.cc,v 1.36 2004/06/28 13:33:05 fluxgen Exp $ #include "Gnome.hh"@@ -131,6 +131,18 @@ }
} + +bool Gnome::propertyNotify(WinClient &winclient, Atom the_property) { + if (the_property == m_gnome_wm_win_state) { +#ifdef DEBUG + cerr<<__FILE__<<"("<<__FUNCTION__<<"): _WIN_STATE"<<endl; +#endif // DEBUG + return true; + } + return false; +} + + void Gnome::updateClientList(BScreen &screen) { size_t num=0;@@ -255,10 +267,11 @@ state |= WIN_STATE_SHADED;
FluxboxWindow::ClientList::iterator client_it = win.clientList().begin(); FluxboxWindow::ClientList::iterator client_it_end = win.clientList().end(); - for (; client_it != client_it_end; ++client_it) + for (; client_it != client_it_end; ++client_it) { (*client_it)->changeProperty(m_gnome_wm_win_state, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&state, 1); + } } void Gnome::updateLayer(FluxboxWindow &win) {
M
src/Gnome.hh
→
src/Gnome.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.hh,v 1.11 2004/01/19 18:27:17 fluxgen Exp $ +// $Id: Gnome.hh,v 1.12 2004/06/28 13:33:05 fluxgen Exp $ #ifndef GNOME_HH #define GNOME_HH@@ -85,7 +85,7 @@
// ignore these ones void updateFrameClose(FluxboxWindow &win) {} void updateClientClose(WinClient &winclient) {} - bool propertyNotify(WinClient &winclient, Atom the_property) { return false; } + bool propertyNotify(WinClient &winclient, Atom the_property); private: void setLayer(FluxboxWindow *win, int layer);