summaryrefslogtreecommitdiffstats
path: root/src/resizabledragwidget.cpp
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2021-02-11 11:37:04 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-11 12:36:02 +0900
commit16e7cd436a26f2c3c401034082e739543ec7860e (patch)
tree2a5545dac1cb23c36e46f133a182f9ab38f0131d /src/resizabledragwidget.cpp
parent2c38847e01161b7e4720271b1b17e79007334855 (diff)
downloadkvkbd-16e7cd436a26f2c3c401034082e739543ec7860e.tar.gz
kvkbd-16e7cd436a26f2c3c401034082e739543ec7860e.zip
Added 'lock on screen' functionality.
Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0da79dd6ef5eae251828d32568aedb01240590b3)
Diffstat (limited to 'src/resizabledragwidget.cpp')
-rw-r--r--src/resizabledragwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resizabledragwidget.cpp b/src/resizabledragwidget.cpp
index ec48d6e..9cb3ade 100644
--- a/src/resizabledragwidget.cpp
+++ b/src/resizabledragwidget.cpp
@@ -36,6 +36,10 @@ ResizableDragWidget::~ResizableDragWidget()
void ResizableDragWidget::mousePressEvent(TQMouseEvent * e)
{
+ if (locked)
+ {
+ return;
+ }
TQPoint pos = e->pos();
if (pos.x()>width()-20 && pos.x()<width() && pos.y()>height()-20 && pos.y()<height() ) {