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 | auto geometry = windowGeometry; | 401 | auto geometry = windowGeometry; |
| 402 | auto menu = qApp->getPrimaryMenu(); | 402 | auto menu = qApp->getPrimaryMenu(); |
| 403 | if (menu) { | 403 | if (menu) { |
| 404 | geometry.setHeight(geometry.height() - menu->geometry().height()); | 404 | geometry.setY(geometry.y() + menu->geometry().height()); |
| 405 | } | 405 | } |
| 406 | emit geometryChanged(geometry); | 406 | emit geometryChanged(geometry); |
| 407 | } | 407 | } |