summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index dd7627b23..5cf430821 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -769,22 +769,7 @@ void Window::mousePressed(MouseEvent &event)
if (popupMenu)
{
event.consume();
-
- if (viewport)
- {
- popupMenu->showWindowPopup(this,
- viewport->mMouseX,
- viewport->mMouseY);
- }
- else
- {
- int mouseX = 0;
- int mouseY = 0;
- Gui::getMouseState(&mouseX, &mouseY);
- popupMenu->showWindowPopup(this,
- mouseX,
- mouseY);
- }
+ popupMenu->showWindowPopup(this);
}
}
}