X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTApplication.java;h=fe90e5d1ef758e05063373c0279add1639d5dc38;hb=9ad2ce4f566e1d811ac0fd205efe8865a77ae1de;hp=affc6ce4d1487118a23aa30d5673ad23c648f409;hpb=9917c620116aa68ebf5d74afaeec44416b314729;p=nikiroo-utils.git diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index affc6ce..fe90e5d 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -1766,6 +1766,19 @@ public class TApplication implements Runnable { } } + // If this cell is on top of the desktop, and the desktop has + // requested a hidden mouse, bail out. + if ((desktop != null) && (activeWindow == null) && (activeMenu == null)) { + if ((desktop.hasHiddenMouse() == true) + && (x > desktop.getX()) + && (x < desktop.getX() + desktop.getWidth() - 1) + && (y > desktop.getY()) + && (y < desktop.getY() + desktop.getHeight() - 1) + ) { + return; + } + } + Cell cell = getScreen().getCharXY(x, y); if (cell.isImage()) { cell.invertImage();