mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-23 13:11:28 +00:00
block moving and resizing in fullscreen
This commit is contained in:
@@ -73,6 +73,8 @@ public class MainWindowTitleController implements FxController {
|
||||
}
|
||||
});
|
||||
titleBar.setOnMouseDragged(event -> {
|
||||
//TODO should it be possible to move the window, when in fullscreen?
|
||||
if (window.isFullScreen()) return;
|
||||
window.setX(event.getScreenX() - xOffset);
|
||||
window.setY(event.getScreenY() - yOffset);
|
||||
});
|
||||
|
||||
@@ -152,4 +152,9 @@ public class ResizeController implements FxController {
|
||||
settings.windowXPositionProperty().setValue(window.getX());
|
||||
}
|
||||
|
||||
public boolean isShowResizingArrows(){
|
||||
//If in fullscreen resizing should not be possible
|
||||
return window.isFullScreen();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user