summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index c17e4c76..399cb73f 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -227,10 +227,12 @@ void Window::mouseMotion(int mx, int my)
if (y + winHeight > screen->h) y = screen->h - winHeight;
// Snap window to edges
+ /*
if (x < snapSize) x = 0;
if (y < snapSize) y = 0;
if (x + winWidth + snapSize > screen->w) x = screen->w - winWidth;
if (y + winHeight + snapSize > screen->h) y = screen->h - winHeight;
+ */
this->setPosition(x, y);
}