aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Gnome.cc5
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
250void Gnome::updateLayer(FluxboxWindow &win) { 250void 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);