diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Ewmh.cc | 8 |
1 files 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 @@ | |||
29 | #include "Workspace.hh" | 29 | #include "Workspace.hh" |
30 | #include "Layer.hh" | 30 | #include "Layer.hh" |
31 | #include "WinClientUtil.hh" | 31 | #include "WinClientUtil.hh" |
32 | #include "fluxbox.hh" | ||
32 | 33 | ||
33 | #include "FbTk/App.hh" | 34 | #include "FbTk/App.hh" |
34 | #include "FbTk/FbWindow.hh" | 35 | #include "FbTk/FbWindow.hh" |
35 | #include "FbTk/I18n.hh" | 36 | #include "FbTk/I18n.hh" |
37 | #include "FbTk/XLayerItem.hh" | ||
38 | #include "FbTk/XLayer.hh" | ||
36 | 39 | ||
37 | #include <iostream> | 40 | #include <iostream> |
38 | #include <algorithm> | 41 | #include <algorithm> |
@@ -789,9 +792,10 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, | |||
789 | above_win == winclient) // this would be very wrong :) | 792 | above_win == winclient) // this would be very wrong :) |
790 | return true; | 793 | return true; |
791 | 794 | ||
795 | FbTk::XLayerItem &below_item = winclient->fbwindow()->layerItem(); | ||
796 | FbTk::XLayerItem &above_item = above_win->fbwindow()->layerItem(); | ||
792 | // this might break the transient_for layering | 797 | // this might break the transient_for layering |
793 | winclient->layerItem().stackBelowItem(&winclient->layerItem(), | 798 | below_item.getLayer().stackBelowItem(&below_item, &above_item); |
794 | &above_win->layerItem()); | ||
795 | 799 | ||
796 | return true; | 800 | return true; |
797 | 801 | ||