diff options
author | rathnor <rathnor> | 2003-05-08 02:50:38 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-05-08 02:50:38 (GMT) |
commit | 30d1d5a95187b238928311a580de38d99bcdfc45 (patch) | |
tree | 3e46fd8a4d0e0f4edbd082b75c7831ae5d2fc7ff | |
parent | a7a178589992eeece8939dd179c0d5f0032002c4 (diff) | |
download | fluxbox-30d1d5a95187b238928311a580de38d99bcdfc45.zip fluxbox-30d1d5a95187b238928311a580de38d99bcdfc45.tar.bz2 |
fix updating of gnome layer atom
-rw-r--r-- | src/Gnome.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index 17d4f30..f90fa9e 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.18 2003/04/25 11:15:01 fluxgen Exp $ | 22 | // $Id: Gnome.cc,v 1.19 2003/05/08 02:50:38 rathnor Exp $ |
23 | 23 | ||
24 | #include "Gnome.hh" | 24 | #include "Gnome.hh" |
25 | 25 | ||
@@ -249,7 +249,8 @@ void Gnome::updateState(FluxboxWindow &win) { | |||
249 | 249 | ||
250 | void Gnome::updateLayer(FluxboxWindow &win) { | 250 | void Gnome::updateLayer(FluxboxWindow &win) { |
251 | //TODO - map from flux layers to gnome ones | 251 | //TODO - map from flux layers to gnome ones |
252 | int layernum = win.getLayerNum(); | 252 | // our layers are in the opposite direction to GNOME |
253 | int layernum = Fluxbox::instance()->getDesktopLayer() - win.getLayerNum(); | ||
253 | XChangeProperty(FbTk::App::instance()->display(), win.getClientWindow(), | 254 | XChangeProperty(FbTk::App::instance()->display(), win.getClientWindow(), |
254 | m_gnome_wm_win_layer, | 255 | m_gnome_wm_win_layer, |
255 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&layernum, 1); | 256 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&layernum, 1); |