From 30d1d5a95187b238928311a580de38d99bcdfc45 Mon Sep 17 00:00:00 2001 From: rathnor Date: Thu, 8 May 2003 02:50:38 +0000 Subject: fix updating of gnome layer atom --- src/Gnome.cc | 5 +++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.cc,v 1.18 2003/04/25 11:15:01 fluxgen Exp $ +// $Id: Gnome.cc,v 1.19 2003/05/08 02:50:38 rathnor Exp $ #include "Gnome.hh" @@ -249,7 +249,8 @@ void Gnome::updateState(FluxboxWindow &win) { void Gnome::updateLayer(FluxboxWindow &win) { //TODO - map from flux layers to gnome ones - int layernum = win.getLayerNum(); + // our layers are in the opposite direction to GNOME + int layernum = Fluxbox::instance()->getDesktopLayer() - win.getLayerNum(); XChangeProperty(FbTk::App::instance()->display(), win.getClientWindow(), m_gnome_wm_win_layer, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&layernum, 1); -- cgit v0.11.2