minor stuff

This commit is contained in:
fluxgen 2004-06-28 13:33:05 +00:00
parent 92d37fd50d
commit df68d8d0b0
2 changed files with 17 additions and 4 deletions

View file

@ -19,7 +19,7 @@
// 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 @@ void Gnome::setupFrame(FluxboxWindow &win) {
}
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,11 +267,12 @@ void Gnome::updateState(FluxboxWindow &win) {
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) {
//TODO - map from flux layers to gnome ones

View file

@ -19,7 +19,7 @@
// 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 @@ public:
// 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);