const on updateGnome* functions
This commit is contained in:
parent
eaecf66a23
commit
a10c34918c
2 changed files with 18 additions and 19 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Window.cc,v 1.48 2002/04/28 20:09:31 fluxgen Exp $
|
// $Id: Window.cc,v 1.49 2002/05/07 13:31:11 fluxgen Exp $
|
||||||
|
|
||||||
#include "Window.hh"
|
#include "Window.hh"
|
||||||
|
|
||||||
|
@ -862,36 +862,35 @@ void FluxboxWindow::createButton(int type, ButtonEventProc pressed, ButtonEventP
|
||||||
|
|
||||||
#ifdef GNOME
|
#ifdef GNOME
|
||||||
//TODO
|
//TODO
|
||||||
void FluxboxWindow::updateGnomeAtoms() {
|
void FluxboxWindow::updateGnomeAtoms() const {
|
||||||
updateGnomeWorkspaceAtom();
|
|
||||||
updateGnomeStateAtom();
|
updateGnomeStateAtom();
|
||||||
updateGnomeLayerAtom();
|
updateGnomeLayerAtom();
|
||||||
updateGnomeWorkspaceAtom();
|
updateGnomeWorkspaceAtom();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FluxboxWindow::updateGnomeStateAtom() {
|
void FluxboxWindow::updateGnomeStateAtom() const {
|
||||||
BaseDisplay *bd = screen->getBaseDisplay();
|
const BaseDisplay *bd = screen->getBaseDisplay();
|
||||||
int val = getGnomeWindowState();
|
int val = getGnomeWindowState();
|
||||||
XChangeProperty(display, client.window, bd->getGnomeStateAtom(),
|
XChangeProperty(display, client.window, bd->getGnomeStateAtom(),
|
||||||
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FluxboxWindow::updateGnomeLayerAtom() {
|
void FluxboxWindow::updateGnomeLayerAtom() const {
|
||||||
BaseDisplay *bd = screen->getBaseDisplay();
|
const BaseDisplay *bd = screen->getBaseDisplay();
|
||||||
int val = getGnomeLayer();
|
int val = getGnomeLayer();
|
||||||
XChangeProperty(display, client.window, bd->getGnomeLayerAtom(),
|
XChangeProperty(display, client.window, bd->getGnomeLayerAtom(),
|
||||||
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FluxboxWindow::updateGnomeWorkspaceAtom() {
|
void FluxboxWindow::updateGnomeWorkspaceAtom() const {
|
||||||
BaseDisplay *bd = screen->getBaseDisplay();
|
const BaseDisplay *bd = screen->getBaseDisplay();
|
||||||
int val = workspace_number;
|
int val = workspace_number;
|
||||||
XChangeProperty(display, client.window, bd->getGnomeWorkspaceAtom(),
|
XChangeProperty(display, client.window, bd->getGnomeWorkspaceAtom(),
|
||||||
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
int FluxboxWindow::getGnomeWindowState() {
|
int FluxboxWindow::getGnomeWindowState() const {
|
||||||
int state=0;
|
int state=0;
|
||||||
if (isStuck())
|
if (isStuck())
|
||||||
state |= WIN_STATE_STICKY;
|
state |= WIN_STATE_STICKY;
|
||||||
|
@ -912,7 +911,7 @@ int FluxboxWindow::getGnomeWindowState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
int FluxboxWindow::getGnomeLayer() {
|
int FluxboxWindow::getGnomeLayer() const {
|
||||||
switch (m_layer) {
|
switch (m_layer) {
|
||||||
case LAYER_NORMAL:
|
case LAYER_NORMAL:
|
||||||
return WIN_LAYER_NORMAL;
|
return WIN_LAYER_NORMAL;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Window.hh,v 1.18 2002/04/04 22:39:52 fluxgen Exp $
|
// $Id: Window.hh,v 1.19 2002/05/07 13:31:11 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef WINDOW_HH
|
#ifndef WINDOW_HH
|
||||||
#define WINDOW_HH
|
#define WINDOW_HH
|
||||||
|
@ -321,17 +321,17 @@ private:
|
||||||
|
|
||||||
#ifdef GNOME
|
#ifdef GNOME
|
||||||
|
|
||||||
void updateGnomeAtoms();
|
void updateGnomeAtoms() const;
|
||||||
void updateGnomeStateAtom();
|
void updateGnomeStateAtom() const;
|
||||||
void updateGnomeHintsAtom();
|
void updateGnomeHintsAtom() const;
|
||||||
void updateGnomeLayerAtom();
|
void updateGnomeLayerAtom() const;
|
||||||
void updateGnomeWorkspaceAtom();
|
void updateGnomeWorkspaceAtom() const;
|
||||||
|
|
||||||
void setGnomeLayer(int layer);
|
void setGnomeLayer(int layer);
|
||||||
|
|
||||||
int getGnomeWindowState();
|
int getGnomeWindowState() const;
|
||||||
bool handleGnomePropertyNotify(Atom atom);
|
bool handleGnomePropertyNotify(Atom atom);
|
||||||
int getGnomeLayer();
|
int getGnomeLayer() const;
|
||||||
void loadGnomeAtoms();
|
void loadGnomeAtoms();
|
||||||
void loadGnomeStateAtom();
|
void loadGnomeStateAtom();
|
||||||
void loadGnomeHintsAtom();
|
void loadGnomeHintsAtom();
|
||||||
|
|
Loading…
Reference in a new issue