Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Context not available. | |||||
960 | if (isFullScreen()) { | 960 | if (isFullScreen()) { | ||
---|---|---|---|---|---|
961 | setGeometry(workspace()->clientArea(FullScreenArea, this)); | 961 | setGeometry(workspace()->clientArea(FullScreenArea, this)); | ||
962 | } else { | 962 | } else { | ||
963 | if (!m_geomFsRestore.isNull()) { | 963 | if (m_geomFsRestore.isValid()) { | ||
964 | int currentScreen = screen(); | 964 | int currentScreen = screen(); | ||
965 | setGeometry(QRect(m_geomFsRestore.topLeft(), adjustedSize(m_geomFsRestore.size()))); | 965 | setGeometry(QRect(m_geomFsRestore.topLeft(), adjustedSize(m_geomFsRestore.size()))); | ||
966 | if( currentScreen != screen()) | 966 | if( currentScreen != screen()) | ||
967 | workspace()->sendClientToScreen( this, currentScreen ); | 967 | workspace()->sendClientToScreen( this, currentScreen ); | ||
968 | } else { | 968 | } else { | ||
969 | // does this ever happen? | 969 | // this can happen when the window was first shown already fullscreen, | ||
970 | setGeometry(workspace()->clientArea(MaximizeArea, this)); | 970 | // so let the client set the size by itself | ||
971 | setGeometry(QRect(QPoint(0, 0), QSize(0, 0))); | ||||
971 | } | 972 | } | ||
972 | } | 973 | } | ||
973 | updateWindowRules(Rules::Fullscreen|Rules::Position|Rules::Size); | 974 | updateWindowRules(Rules::Fullscreen|Rules::Position|Rules::Size); | ||
Context not available. |