Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Context not available. | |||||
977 | if (isFullScreen()) { | 977 | if (isFullScreen()) { | ||
---|---|---|---|---|---|
978 | setGeometry(workspace()->clientArea(FullScreenArea, this)); | 978 | setGeometry(workspace()->clientArea(FullScreenArea, this)); | ||
979 | } else { | 979 | } else { | ||
980 | if (!m_geomFsRestore.isNull()) { | 980 | if (m_geomFsRestore.isValid()) { | ||
981 | int currentScreen = screen(); | 981 | int currentScreen = screen(); | ||
982 | setGeometry(QRect(m_geomFsRestore.topLeft(), adjustedSize(m_geomFsRestore.size()))); | 982 | setGeometry(QRect(m_geomFsRestore.topLeft(), adjustedSize(m_geomFsRestore.size()))); | ||
983 | if( currentScreen != screen()) | 983 | if( currentScreen != screen()) | ||
984 | workspace()->sendClientToScreen( this, currentScreen ); | 984 | workspace()->sendClientToScreen( this, currentScreen ); | ||
985 | } else { | 985 | } else { | ||
986 | // does this ever happen? | 986 | // this can happen when the window was first shown already fullscreen, | ||
987 | setGeometry(workspace()->clientArea(MaximizeArea, this)); | 987 | // so let the client set the size by itself | ||
988 | setGeometry(QRect(workspace()->clientArea(PlacementArea, this).topLeft(), QSize(0, 0))); | ||||
988 | } | 989 | } | ||
989 | } | 990 | } | ||
990 | updateWindowRules(Rules::Fullscreen|Rules::Position|Rules::Size); | 991 | updateWindowRules(Rules::Fullscreen|Rules::Position|Rules::Size); | ||
Context not available. |