Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ui/widgets/separate_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,13 @@ QRect SeparatePanel::innerGeometry() const {
void SeparatePanel::toggleFullScreen(bool fullscreen) {
_fullscreen = fullscreen;
if (fullscreen) {
// RpWidget's constructor calls setGeometry(0, 0, 0, 0), which sets
// WA_Moved. After that Qt treats the panel as explicitly positioned
// and QWidget::show() / QWidgetPrivate::create pass that position to
// the QWindow instead of letting the platform place a fullscreen
// window at the screen origin (resize-only). Same workaround as the
// Linux transient-parent path in initGeometry().
setAttribute(Qt::WA_Moved, false);
showFullScreen();
} else {
showNormal();
Expand Down