Skip to content

Commit

Permalink
Merge pull request mabe02#296 from thumbnail/master
Browse files Browse the repository at this point in the history
Only check visible windows for invalidness
  • Loading branch information
mabe02 authored Mar 26, 2017
2 parents 29a0250 + 1e5b1f0 commit 5bd000f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of lanterna (http://code.google.com/p/lanterna/).
*
*
* lanterna is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -13,7 +13,7 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* Copyright (C) 2010-2017 Martin Berglund
*/
package com.googlecode.lanterna.gui2;
Expand Down Expand Up @@ -191,7 +191,7 @@ public TerminalPosition fromGlobal(TerminalPosition globalPosition) {
@Override
public synchronized boolean isPendingUpdate() {
for(Window window: windows) {
if(window.isInvalid()) {
if(window.isVisible() && window.isInvalid()) {
return true;
}
}
Expand Down

0 comments on commit 5bd000f

Please sign in to comment.