Skip to content

Commit 05d0258

Browse files
committed
Limit screen edge pushing to fullscreen mode
1 parent b188f84 commit 05d0258

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/core/StelMovementMgr.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525

2626
#include "StelMovementMgr.hpp"
27+
#include "StelMainView.hpp"
2728
#include "StelObjectMgr.hpp"
2829
#include "StelModuleMgr.hpp"
2930
#include "StelApp.hpp"
@@ -321,8 +322,8 @@ Vec3d StelMovementMgr::getViewUpVectorJ2000() const
321322

322323
bool StelMovementMgr::handleMouseMoves(int x, int y, Qt::MouseButtons)
323324
{
324-
// Turn if the mouse is at the edge of the screen unless config asks otherwise
325-
if (flagEnableMoveAtScreenEdge)
325+
// Turn if the mouse is at the edge of the screen unless config asks otherwise (this is too awkward in windowed mode)
326+
if (flagEnableMoveAtScreenEdge && StelMainView::getInstance().isFullScreen())
326327
{
327328
if (x <= 1)
328329
{

src/gui/configurationDialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,7 @@
27752775
<item row="6" column="1">
27762776
<widget class="QCheckBox" name="pushScreenEdgeCheckBox">
27772777
<property name="toolTip">
2778-
<string>Allow mouse to move view when at screen edge</string>
2778+
<string>Allow mouse to move view when at screen edge (Fullscreen only)</string>
27792779
</property>
27802780
<property name="text">
27812781
<string>Mouse push screen edge</string>

0 commit comments

Comments
 (0)