minor indentation and comments
This commit is contained in:
parent
9574ba4f0c
commit
1c7a33c64c
1 changed files with 6 additions and 4 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: Screen.cc,v 1.54 2002/06/02 22:48:38 fluxgen Exp $
|
// $Id: Screen.cc,v 1.55 2002/07/10 14:51:32 fluxgen Exp $
|
||||||
|
|
||||||
//use GNU extensions
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -1120,7 +1120,7 @@ void BScreen::nextFocus(int opts) {
|
||||||
|
|
||||||
if ((focused = fluxbox->getFocusedWindow())) {
|
if ((focused = fluxbox->getFocusedWindow())) {
|
||||||
if (focused->getScreen()->getScreenNumber() ==
|
if (focused->getScreen()->getScreenNumber() ==
|
||||||
getScreenNumber()) {
|
getScreenNumber()) {
|
||||||
have_focused = true;
|
have_focused = true;
|
||||||
focused_window_number = focused->getWindowNumber();
|
focused_window_number = focused->getWindowNumber();
|
||||||
}
|
}
|
||||||
|
@ -1130,7 +1130,8 @@ void BScreen::nextFocus(int opts) {
|
||||||
Workspace *wksp = getCurrentWorkspace();
|
Workspace *wksp = getCurrentWorkspace();
|
||||||
Workspace::Windows wins = wksp->getWindowList();
|
Workspace::Windows wins = wksp->getWindowList();
|
||||||
Workspace::Windows::iterator it = wins.begin();
|
Workspace::Windows::iterator it = wins.begin();
|
||||||
for (; *it != focused; ++it);
|
for (; *it != focused; ++it); //get focused window iterator
|
||||||
|
|
||||||
do {
|
do {
|
||||||
++it;
|
++it;
|
||||||
if (it == wins.end())
|
if (it == wins.end())
|
||||||
|
@ -1142,6 +1143,7 @@ void BScreen::nextFocus(int opts) {
|
||||||
|
|
||||||
if (*it != focused)
|
if (*it != focused)
|
||||||
wksp->raiseWindow(*it);
|
wksp->raiseWindow(*it);
|
||||||
|
|
||||||
} else if (num_windows >= 1) {
|
} else if (num_windows >= 1) {
|
||||||
FluxboxWindow *next = current_workspace->getWindow(0);
|
FluxboxWindow *next = current_workspace->getWindow(0);
|
||||||
//don't raise next window if input focus fails
|
//don't raise next window if input focus fails
|
||||||
|
|
Loading…
Reference in a new issue