Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 1896 Lines • ▼ Show 20 Line(s) | 1896 | } else if (geo.isEmpty()) { | |||
---|---|---|---|---|---|
1897 | return; | 1897 | return; | ||
1898 | // The keyboard has just been opened (rather than resized) save client geometry for a restore | 1898 | // The keyboard has just been opened (rather than resized) save client geometry for a restore | ||
1899 | } else if (m_keyboardGeometryRestore.isEmpty()) { | 1899 | } else if (m_keyboardGeometryRestore.isEmpty()) { | ||
1900 | m_keyboardGeometryRestore = geometry(); | 1900 | m_keyboardGeometryRestore = geometry(); | ||
1901 | } | 1901 | } | ||
1902 | 1902 | | |||
1903 | m_virtualKeyboardGeometry = geo; | 1903 | m_virtualKeyboardGeometry = geo; | ||
1904 | 1904 | | |||
1905 | // Don't resize Desktop and fullscreen windows | ||||
1906 | if (isFullScreen() || isDesktop()) { | ||||
1907 | return; | ||||
1908 | } | ||||
1909 | | ||||
1905 | if (!geo.intersects(m_keyboardGeometryRestore)) { | 1910 | if (!geo.intersects(m_keyboardGeometryRestore)) { | ||
1906 | return; | 1911 | return; | ||
1907 | } | 1912 | } | ||
1908 | 1913 | | |||
1909 | const QRect availableArea = workspace()->clientArea(MaximizeArea, this); | 1914 | const QRect availableArea = workspace()->clientArea(MaximizeArea, this); | ||
1910 | QRect newWindowGeometry = m_keyboardGeometryRestore; | 1915 | QRect newWindowGeometry = m_keyboardGeometryRestore; | ||
1911 | newWindowGeometry.moveBottom(geo.top()); | 1916 | newWindowGeometry.moveBottom(geo.top()); | ||
1912 | newWindowGeometry.setTop(qMax(newWindowGeometry.top(), availableArea.top())); | 1917 | newWindowGeometry.setTop(qMax(newWindowGeometry.top(), availableArea.top())); | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |