X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTApplication.java;h=161e161ab8cecaa6ecfcab62ff444761de75850f;hb=978a5d8f650488c8840d54ccc3032599ca50a084;hp=41981daf3c3ca0e3943223534de125e0c943d835;hpb=af56159c6460ab42f06e30d4e677c67f64e3ea8e;p=fanfix.git diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index 41981da..161e161 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -1522,7 +1522,26 @@ public class TApplication implements Runnable { if (debugThreads) { System.err.printf("%d %s invertCell() %d %d\n", System.currentTimeMillis(), Thread.currentThread(), x, y); + + if (activeWindow != null) { + System.err.println("activeWindow.hasHiddenMouse() " + + activeWindow.hasHiddenMouse()); + } } + + // If this cell is on top of a visible window that has requested a + // hidden mouse, bail out. + if ((activeWindow != null) && (activeMenu == null)) { + if ((activeWindow.hasHiddenMouse() == true) + && (x > activeWindow.getX()) + && (x < activeWindow.getX() + activeWindow.getWidth() - 1) + && (y > activeWindow.getY()) + && (y < activeWindow.getY() + activeWindow.getHeight() - 1) + ) { + return; + } + } + Cell cell = getScreen().getCharXY(x, y); if (cell.isImage()) { cell.invertImage();