Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
71 | connect(this, &AbstractClient::paletteChanged, this, &AbstractClient::triggerDecorationRepaint); | 71 | connect(this, &AbstractClient::paletteChanged, this, &AbstractClient::triggerDecorationRepaint); | ||
72 | 72 | | |||
73 | connect(Decoration::DecorationBridge::self(), &QObject::destroyed, this, &AbstractClient::destroyDecoration); | 73 | connect(Decoration::DecorationBridge::self(), &QObject::destroyed, this, &AbstractClient::destroyDecoration); | ||
74 | 74 | | |||
75 | // replace on-screen-display on size changes | 75 | // replace on-screen-display on size changes | ||
76 | connect(this, &AbstractClient::geometryShapeChanged, this, | 76 | connect(this, &AbstractClient::geometryShapeChanged, this, | ||
77 | [this] (Toplevel *c, const QRect &old) { | 77 | [this] (Toplevel *c, const QRect &old) { | ||
78 | Q_UNUSED(c) | 78 | Q_UNUSED(c) | ||
79 | if (isOnScreenDisplay() && !geometry().isEmpty() && old.size() != geometry().size() && !isInitialPositionSet()) { | 79 | if (isOnScreenDisplay() && !geometry().isEmpty() && old.size() != geometry().size() && !isInitialPositionSet()) { | ||
davidedmundson: + clientFullscreen changed? | |||||
80 | GeometryUpdatesBlocker blocker(this); | 80 | GeometryUpdatesBlocker blocker(this); | ||
81 | QRect area = workspace()->clientArea(PlacementArea, Screens::self()->current(), desktop()); | 81 | QRect area = workspace()->clientArea(PlacementArea, Screens::self()->current(), desktop()); | ||
82 | Placement::self()->place(this, area); | 82 | Placement::self()->place(this, area); | ||
83 | setGeometryRestore(geometry()); | 83 | setGeometryRestore(geometry()); | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
86 | ); | 86 | ); | ||
87 | 87 | | |||
▲ Show 20 Lines • Show All 1778 Lines • ▼ Show 20 Line(s) | |||||
1866 | QRect AbstractClient::inputGeometry() const | 1866 | QRect AbstractClient::inputGeometry() const | ||
1867 | { | 1867 | { | ||
1868 | if (isDecorated()) { | 1868 | if (isDecorated()) { | ||
1869 | return Toplevel::inputGeometry() + decoration()->resizeOnlyBorders(); | 1869 | return Toplevel::inputGeometry() + decoration()->resizeOnlyBorders(); | ||
1870 | } | 1870 | } | ||
1871 | return Toplevel::inputGeometry(); | 1871 | return Toplevel::inputGeometry(); | ||
1872 | } | 1872 | } | ||
1873 | 1873 | | |||
1874 | QRect AbstractClient::virtualKeyboardGeometry() const | ||||
1875 | { | ||||
1876 | return m_virtualKeyboardGeometry; | ||||
1877 | } | ||||
1878 | | ||||
1879 | void AbstractClient::setVirtualKeyboardGeometry(const QRect &geo) | ||||
1880 | { | ||||
1881 | m_virtualKeyboardGeometry = geo; | ||||
1882 | if (maximizeMode() != MaximizeRestore) { | ||||
1883 | changeMaximize(false, false, true); // adjust size | ||||
1884 | } | ||||
1885 | } | ||||
1886 | | ||||
1874 | bool AbstractClient::dockWantsInput() const | 1887 | bool AbstractClient::dockWantsInput() const | ||
1875 | { | 1888 | { | ||
1876 | return false; | 1889 | return false; | ||
1877 | } | 1890 | } | ||
1878 | 1891 | | |||
1879 | void AbstractClient::setDesktopFileName(QByteArray name) | 1892 | void AbstractClient::setDesktopFileName(QByteArray name) | ||
1880 | { | 1893 | { | ||
1881 | name = rules()->checkDesktopFile(name).toUtf8(); | 1894 | name = rules()->checkDesktopFile(name).toUtf8(); | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |
+ clientFullscreen changed?