summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/RenderArea.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Gui/RenderArea.cpp b/src/Gui/RenderArea.cpp
index 41f76a6..0fcc9ce 100644
--- a/src/Gui/RenderArea.cpp
+++ b/src/Gui/RenderArea.cpp
@@ -130,8 +130,7 @@ bool RenderArea::onScrollEvent(GdkEventScroll *event) {
}
bool RenderArea::onButtonPressEvent(GdkEventButton *event) {
- if(view && event->button == 1)
- view->click(event->x, event->y);
+ view->click(event->x - get_width()/2, event->y - get_height()/2, event->button);
return true;
}