new workspace window stacking

This commit is contained in:
fluxgen 2002-09-08 19:43:15 +00:00
parent 1cdc741cc4
commit 1467457cde
2 changed files with 11 additions and 7 deletions

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Tab.cc,v 1.31 2002/08/11 21:12:10 fluxgen Exp $
// $Id: Tab.cc,v 1.32 2002/09/08 19:41:59 fluxgen Exp $
#include "Tab.hh"
@ -155,8 +155,11 @@ void Tab::raise() {
//get first tab
Tab *tab = 0;
//raise tabs
for (tab = getFirst(this); tab!=0; tab = tab->m_next)
m_win->getScreen()->raiseWindows(&tab->m_tabwin, 1);
Workspace::Stack st;
for (tab = getFirst(this); tab!=0; tab = tab->m_next) {
st.push_back(tab->m_tabwin);
}
m_win->getScreen()->raiseWindows(st);
}
//-------------- lower --------------------

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Toolbar.cc,v 1.30 2002/09/06 16:50:51 fluxgen Exp $
// $Id: Toolbar.cc,v 1.31 2002/09/08 19:43:15 fluxgen Exp $
#include "Toolbar.hh"
@ -1022,8 +1022,9 @@ void Toolbar::buttonPressEvent(XButtonEvent *be) {
}
#endif // HAVE_STRFTIME
else if (! on_top) {
Window w[1] = { frame.window };
screen->raiseWindows(w, 1);
Workspace::Stack st;
st.push_back(frame.window);
screen->raiseWindows(st);
}
} else if (be->button == 2 && (! on_top)) {
XLowerWindow(display, frame.window);
@ -1315,7 +1316,7 @@ void Toolbarmenu::itemSelected(int button, unsigned int index) {
setItemSelected(1, change);
if (toolbar->isOnTop())
toolbar->screen->raiseWindows((Window *) 0, 0);
toolbar->screen->raiseWindows(Workspace::Stack());
Fluxbox::instance()->save_rc();
break;