summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 }