summaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index 975c2d9..d05d7d5 100644
--- a/src/Tab.cc
+++ b/src/Tab.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: Tab.cc,v 1.14 2002/01/09 14:11:20 fluxgen Exp $ 22// $Id: Tab.cc,v 1.15 2002/01/18 18:28:17 pekdon Exp $
23 23
24#include "Tab.hh" 24#include "Tab.hh"
25 25
@@ -157,6 +157,27 @@ void Tab::raise() {
157 m_win->getScreen()->raiseWindows(&first->m_tabwin, 1); 157 m_win->getScreen()->raiseWindows(&first->m_tabwin, 1);
158} 158}
159 159
160//-------------- lower --------------------
161// Lowers the tabs in the tablist AND
162// the windows the tabs relate to
163//-----------------------------------------
164void Tab::lower() {
165 Tab *current = this;
166 FluxboxWindow *win = 0; //convinence
167 //this have to be done in the correct order, otherwise we'll switch the window
168 //beeing ontop in the group
169 do {
170 XLowerWindow(m_display, current->m_tabwin); //lower tabwin and tabs window
171 win = current->getWindow();
172 win->getScreen()->getWorkspace(win->getWorkspaceNumber())->lowerWindow(win);
173
174 current = current->next(); //get next
175 if (current == 0)
176 current = getFirst(this); //there weren't any after, get the first
177
178 } while (current != this);
179}
180
160//-------------- loadTheme ----------------- 181//-------------- loadTheme -----------------
161// loads the texture with the correct 182// loads the texture with the correct
162// width and height, this is necessary in 183// width and height, this is necessary in