aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-07 13:31:11 (GMT)
committerfluxgen <fluxgen>2002-05-07 13:31:11 (GMT)
commita10c34918c4b439b803f67304215b22d7ca649dd (patch)
tree23ffc1114764a06fc6f876fd826cd0fd8b6c5ac8 /src/Window.cc
parenteaecf66a232de556ac9003920f1c9694fed0e2c5 (diff)
downloadfluxbox_pavel-a10c34918c4b439b803f67304215b22d7ca649dd.zip
fluxbox_pavel-a10c34918c4b439b803f67304215b22d7ca649dd.tar.bz2
const on updateGnome* functions
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 9b4f555..2fcc31b 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.48 2002/04/28 20:09:31 fluxgen Exp $ 25// $Id: Window.cc,v 1.49 2002/05/07 13:31:11 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -862,36 +862,35 @@ void FluxboxWindow::createButton(int type, ButtonEventProc pressed, ButtonEventP
862 862
863#ifdef GNOME 863#ifdef GNOME
864//TODO 864//TODO
865void FluxboxWindow::updateGnomeAtoms() { 865void FluxboxWindow::updateGnomeAtoms() const {
866 updateGnomeWorkspaceAtom();
867 updateGnomeStateAtom(); 866 updateGnomeStateAtom();
868 updateGnomeLayerAtom(); 867 updateGnomeLayerAtom();
869 updateGnomeWorkspaceAtom(); 868 updateGnomeWorkspaceAtom();
870} 869}
871 870
872void FluxboxWindow::updateGnomeStateAtom() { 871void FluxboxWindow::updateGnomeStateAtom() const {
873 BaseDisplay *bd = screen->getBaseDisplay(); 872 const BaseDisplay *bd = screen->getBaseDisplay();
874 int val = getGnomeWindowState(); 873 int val = getGnomeWindowState();
875 XChangeProperty(display, client.window, bd->getGnomeStateAtom(), 874 XChangeProperty(display, client.window, bd->getGnomeStateAtom(),
876 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1); 875 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
877} 876}
878 877
879void FluxboxWindow::updateGnomeLayerAtom() { 878void FluxboxWindow::updateGnomeLayerAtom() const {
880 BaseDisplay *bd = screen->getBaseDisplay(); 879 const BaseDisplay *bd = screen->getBaseDisplay();
881 int val = getGnomeLayer(); 880 int val = getGnomeLayer();
882 XChangeProperty(display, client.window, bd->getGnomeLayerAtom(), 881 XChangeProperty(display, client.window, bd->getGnomeLayerAtom(),
883 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1); 882 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
884} 883}
885 884
886void FluxboxWindow::updateGnomeWorkspaceAtom() { 885void FluxboxWindow::updateGnomeWorkspaceAtom() const {
887 BaseDisplay *bd = screen->getBaseDisplay(); 886 const BaseDisplay *bd = screen->getBaseDisplay();
888 int val = workspace_number; 887 int val = workspace_number;
889 XChangeProperty(display, client.window, bd->getGnomeWorkspaceAtom(), 888 XChangeProperty(display, client.window, bd->getGnomeWorkspaceAtom(),
890 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1); 889 XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&val, 1);
891} 890}
892 891
893//TODO 892//TODO
894int FluxboxWindow::getGnomeWindowState() { 893int FluxboxWindow::getGnomeWindowState() const {
895 int state=0; 894 int state=0;
896 if (isStuck()) 895 if (isStuck())
897 state |= WIN_STATE_STICKY; 896 state |= WIN_STATE_STICKY;
@@ -912,7 +911,7 @@ int FluxboxWindow::getGnomeWindowState() {
912} 911}
913 912
914//TODO 913//TODO
915int FluxboxWindow::getGnomeLayer() { 914int FluxboxWindow::getGnomeLayer() const {
916 switch (m_layer) { 915 switch (m_layer) {
917 case LAYER_NORMAL: 916 case LAYER_NORMAL:
918 return WIN_LAYER_NORMAL; 917 return WIN_LAYER_NORMAL;