fix updating of gnome layer atom
rathnor rathnor
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
src/Gnome.cc
→
src/Gnome.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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::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);