From 697194c0aa328bdcebc3cc8ef2ef22ee2a38b465 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sat, 16 Sep 2023 10:59:42 +0200 Subject: [PATCH] Maximizing works... --- src/rviz/default_plugin/image_display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rviz/default_plugin/image_display.cpp b/src/rviz/default_plugin/image_display.cpp index 3b05a858c..ea8f8818e 100644 --- a/src/rviz/default_plugin/image_display.cpp +++ b/src/rviz/default_plugin/image_display.cpp @@ -171,7 +171,7 @@ void ImageDisplay::onDisable() void ImageDisplay::toggleFullScreen() { auto* panel = getAssociatedWidgetPanel(); - if (panel->windowState() & Qt::WindowFullScreen) + if (panel->windowState() & Qt::WindowMaximized) { panel->setFloating(false); panel->showNormal(); @@ -179,7 +179,7 @@ void ImageDisplay::toggleFullScreen() else { panel->setFloating(true); - panel->showFullScreen(); + panel->showMaximized(); } }