aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-09-08 19:48:03 (GMT)
committerfluxgen <fluxgen>2002-09-08 19:48:03 (GMT)
commit50f7dfc031f991427c061c5aff2dd97a7bd39faf (patch)
tree5ff3533a67378db72534ef6d075b8b0b1bb9b64b /src/Slit.cc
parent6a609280facaf0a3ba395f37b0115a339002b4a5 (diff)
downloadfluxbox_pavel-50f7dfc031f991427c061c5aff2dd97a7bd39faf.zip
fluxbox_pavel-50f7dfc031f991427c061c5aff2dd97a7bd39faf.tar.bz2
new workspace stacking
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 2684ca2..c68683f 100644
--- a/src/Slit.cc
+++ b/src/Slit.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: Slit.cc,v 1.20 2002/08/14 21:51:07 fluxgen Exp $ 22// $Id: Slit.cc,v 1.21 2002/09/08 19:48:03 fluxgen Exp $
23 23
24//use GNU extensions 24//use GNU extensions
25#ifndef _GNU_SOURCE 25#ifndef _GNU_SOURCE
@@ -678,8 +678,9 @@ void Slit::buttonPressEvent(XButtonEvent *e) {
678 if (e->window != frame.window) return; 678 if (e->window != frame.window) return;
679 679
680 if (e->button == Button1 && (! on_top)) { 680 if (e->button == Button1 && (! on_top)) {
681 Window w[1] = { frame.window }; 681 Workspace::Stack st;
682 screen->raiseWindows(w, 1); 682 st.push_back(frame.window);
683 screen->raiseWindows(st);
683 } else if (e->button == Button2 && (! on_top)) { 684 } else if (e->button == Button2 && (! on_top)) {
684 XLowerWindow(display, frame.window); 685 XLowerWindow(display, frame.window);
685 } else if (e->button == Button3) { 686 } else if (e->button == Button3) {
@@ -888,7 +889,7 @@ void Slitmenu::itemSelected(int button, unsigned int index) {
888 setItemSelected(2, change); 889 setItemSelected(2, change);
889 890
890 if (slit.isOnTop()) 891 if (slit.isOnTop())
891 screen()->raiseWindows(0, 0); 892 screen()->raiseWindows(Workspace::Stack());
892 893
893 break; 894 break;
894 } 895 }