diff options
author | pekdon <pekdon> | 2002-01-18 18:28:17 (GMT) |
---|---|---|
committer | pekdon <pekdon> | 2002-01-18 18:28:17 (GMT) |
commit | 74454c8f2a8f1fcae493930a5a00cafab0959a4c (patch) | |
tree | 15a8d903952bfe9cbc984ba9bf459b459debe172 /src/Tab.cc | |
parent | b0d1c04c119711167fccd1b30e266269a0e2262c (diff) | |
download | fluxbox-74454c8f2a8f1fcae493930a5a00cafab0959a4c.zip fluxbox-74454c8f2a8f1fcae493930a5a00cafab0959a4c.tar.bz2 |
Fixed lower/raise of windows when using keybindings/windowmenu
Diffstat (limited to 'src/Tab.cc')
-rw-r--r-- | src/Tab.cc | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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 | //----------------------------------------- | ||
164 | void 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 |