From 68e0ef84d983744953293ccf68ffbde74c3c2781 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 23 Apr 2006 21:42:11 +0000 Subject: _NET_RESTACK_WINDOW --- src/Ewmh.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Ewmh.cc b/src/Ewmh.cc index 0fbd75b..96722d1 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -29,10 +29,13 @@ #include "Workspace.hh" #include "Layer.hh" #include "WinClientUtil.hh" +#include "fluxbox.hh" #include "FbTk/App.hh" #include "FbTk/FbWindow.hh" #include "FbTk/I18n.hh" +#include "FbTk/XLayerItem.hh" +#include "FbTk/XLayer.hh" #include #include @@ -789,9 +792,10 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, above_win == winclient) // this would be very wrong :) return true; + FbTk::XLayerItem &below_item = winclient->fbwindow()->layerItem(); + FbTk::XLayerItem &above_item = above_win->fbwindow()->layerItem(); // this might break the transient_for layering - winclient->layerItem().stackBelowItem(&winclient->layerItem(), - &above_win->layerItem()); + below_item.getLayer().stackBelowItem(&below_item, &above_item); return true; -- cgit v0.11.2