aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorpekdon <pekdon>2002-01-18 18:28:17 (GMT)
committerpekdon <pekdon>2002-01-18 18:28:17 (GMT)
commit74454c8f2a8f1fcae493930a5a00cafab0959a4c (patch)
tree15a8d903952bfe9cbc984ba9bf459b459debe172 /src/Window.cc
parentb0d1c04c119711167fccd1b30e266269a0e2262c (diff)
downloadfluxbox-74454c8f2a8f1fcae493930a5a00cafab0959a4c.zip
fluxbox-74454c8f2a8f1fcae493930a5a00cafab0959a4c.tar.bz2
Fixed lower/raise of windows when using keybindings/windowmenu
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a7997c9..212a1c2 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.20 2002/01/18 01:25:58 fluxgen Exp $ 25// $Id: Window.cc,v 1.21 2002/01/18 18:28:17 pekdon Exp $
26 26
27// stupid macros needed to access some functions in version 2 of the GNU C 27// stupid macros needed to access some functions in version 2 of the GNU C
28// library 28// library
@@ -2834,13 +2834,15 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent *be) {
2834 if (windowmenu && windowmenu->isVisible()) 2834 if (windowmenu && windowmenu->isVisible())
2835 windowmenu->hide(); 2835 windowmenu->hide();
2836 //raise tab first if there is any 2836 //raise tab first if there is any
2837 if (tab) 2837 if (hasTab())
2838 tab->raise(); 2838 tab->raise();
2839 2839
2840 screen->getWorkspace(workspace_number)->raiseWindow(this); 2840 screen->getWorkspace(workspace_number)->raiseWindow(this);
2841 } 2841 }
2842 } else if (be->button == 2 && be->window == frame.label) { 2842 } else if (be->button == 2 && be->window == frame.label) {
2843 screen->getWorkspace(workspace_number)->lowerWindow(this); 2843 screen->getWorkspace(workspace_number)->lowerWindow(this);
2844 if (hasTab())
2845 getTab()->lower(); //lower the tab AND it's windows
2844 2846
2845 } else if (windowmenu && be->button == 3 && 2847 } else if (windowmenu && be->button == 3 &&
2846 (frame.title == be->window || frame.label == be->window || 2848 (frame.title == be->window || frame.label == be->window ||