Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -401,7 +401,7 @@ void WindowScriptingInterface::onWindowGeometryChanged(const QRect& windowGeomet · 400 unmodified lines | ||
| 401 | 401 | auto geometry = windowGeometry; |
| 402 | 402 | auto menu = qApp->getPrimaryMenu(); |
| 403 | 403 | if (menu) { |
| 404 | − geometry.setHeight(geometry.height() - menu->geometry().height()); | |
| 404 | + geometry.setY(geometry.y() + menu->geometry().height()); | |
| 405 | 405 | } |
| 406 | 406 | emit geometryChanged(geometry); |
| 407 | 407 | } |