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