more TEditor stubs
[nikiroo-utils.git] / src / jexer / TWindow.java
index 8032fdc3d676a9adc4f1988bec84e3a03a75d891..32907a8a9c9046ec4329182623b0137c72391086 100644 (file)
@@ -901,6 +901,12 @@ public class TWindow extends TWidget {
         }
 
         if (inWindowResize) {
+            // Do not permit resizing below the status line
+            if (mouse.getAbsoluteY() == application.getDesktopBottom()) {
+                inWindowResize = false;
+                return;
+            }
+
             // Move window over
             setWidth(resizeWindowWidth + (mouse.getAbsoluteX()
                     - moveWindowMouseX));