use most recently focused window to attach (using screen's focus list)
(Simon)
This commit is contained in:
parent
a9c82d41d8
commit
e0d61ab4f5
1 changed files with 7 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: fluxbox.cc,v 1.109 2003/04/15 12:11:54 fluxgen Exp $
|
// $Id: fluxbox.cc,v 1.110 2003/04/15 13:58:57 rathnor Exp $
|
||||||
|
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
|
||||||
|
@ -1190,10 +1190,12 @@ void Fluxbox::handleKeyEvent(XKeyEvent &ke) {
|
||||||
Workspace::Windows &wins = space->getWindowList();
|
Workspace::Windows &wins = space->getWindowList();
|
||||||
if (wins.size() == 1)
|
if (wins.size() == 1)
|
||||||
break;
|
break;
|
||||||
Workspace::Windows::iterator it = wins.begin();
|
BScreen::FocusedWindows &fwins = screen->getFocusedList();
|
||||||
for (; it != wins.end(); ++it) {
|
BScreen::FocusedWindows::iterator it = fwins.begin();
|
||||||
if ((*it) != focused_window) {
|
for (; it != fwins.end(); ++it) {
|
||||||
focused_window->attachClient((*it)->winClient());
|
if ((*it)->fbwindow() != focused_window &&
|
||||||
|
(*it)->fbwindow()->getWorkspaceNumber() == screen->getCurrentWorkspaceID()) {
|
||||||
|
focused_window->attachClient(**it);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue