summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CurrentWindowCmd.cc7
-rw-r--r--src/FbWinFrame.cc5
2 files changed, 7 insertions, 5 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index fcc141b..b6c3c0e 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -85,9 +85,10 @@ void TakeToPrevWorkspaceCmd::real_execute() {
85} 85}
86 86
87void GoToTabCmd::real_execute() { 87void GoToTabCmd::real_execute() {
88 int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1); 88 int num = m_tab_num;
89 if (num < 1 || num > fbwindow().numClients()) 89 if (num < 0) num += fbwindow().numClients() + 1;
90 return; 90 if (num < 1) num = 1;
91 if (num > fbwindow().numClients()) num = fbwindow().numClients();
91 92
92 FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); 93 FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin();
93 94
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index adef30c..5a9a301 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -833,10 +833,11 @@ bool FbWinFrame::showHandle() {
833 if (m_use_handle || theme().handleWidth() == 0) 833 if (m_use_handle || theme().handleWidth() == 0)
834 return false; 834 return false;
835 835
836 m_use_handle = true;
837
836 // weren't previously rendered... 838 // weren't previously rendered...
837 renderHandles(); 839 renderHandles();
838 840 applyHandles();
839 m_use_handle = true;
840 841
841 m_handle.show(); 842 m_handle.show();
842 m_handle.showSubwindows(); // shows grips 843 m_handle.showSubwindows(); // shows grips