Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 883 Lines • ▼ Show 20 Line(s) | 851 | { | |||
---|---|---|---|---|---|
884 | w->setSkipSwitcher(skipSwitcher()); | 884 | w->setSkipSwitcher(skipSwitcher()); | ||
885 | w->setPid(pid()); | 885 | w->setPid(pid()); | ||
886 | w->setShadeable(isShadeable()); | 886 | w->setShadeable(isShadeable()); | ||
887 | w->setShaded(isShade()); | 887 | w->setShaded(isShade()); | ||
888 | w->setResizable(isResizable()); | 888 | w->setResizable(isResizable()); | ||
889 | w->setMovable(isMovable()); | 889 | w->setMovable(isMovable()); | ||
890 | w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented. | 890 | w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented. | ||
891 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | 891 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | ||
892 | w->setGeometry(geom); | 892 | w->setGeometry(geometry()); | ||
893 | connect(this, &AbstractClient::skipTaskbarChanged, w, | 893 | connect(this, &AbstractClient::skipTaskbarChanged, w, | ||
894 | [w, this] { | 894 | [w, this] { | ||
895 | w->setSkipTaskbar(skipTaskbar()); | 895 | w->setSkipTaskbar(skipTaskbar()); | ||
896 | } | 896 | } | ||
897 | ); | 897 | ); | ||
898 | connect(this, &AbstractClient::skipSwitcherChanged, w, | 898 | connect(this, &AbstractClient::skipSwitcherChanged, w, | ||
899 | [w, this] { | 899 | [w, this] { | ||
900 | w->setSkipSwitcher(skipSwitcher()); | 900 | w->setSkipSwitcher(skipSwitcher()); | ||
Show All 23 Lines | |||||
924 | connect(this, &AbstractClient::shadeChanged, w, [w, this] { w->setShaded(isShade()); }); | 924 | connect(this, &AbstractClient::shadeChanged, w, [w, this] { w->setShaded(isShade()); }); | ||
925 | connect(this, &AbstractClient::transientChanged, w, | 925 | connect(this, &AbstractClient::transientChanged, w, | ||
926 | [w, this] { | 926 | [w, this] { | ||
927 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | 927 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | ||
928 | } | 928 | } | ||
929 | ); | 929 | ); | ||
930 | connect(this, &AbstractClient::geometryChanged, w, | 930 | connect(this, &AbstractClient::geometryChanged, w, | ||
931 | [w, this] { | 931 | [w, this] { | ||
932 | w->setGeometry(geom); | 932 | w->setGeometry(geometry()); | ||
933 | } | 933 | } | ||
934 | ); | 934 | ); | ||
935 | connect(w, &PlasmaWindowInterface::closeRequested, this, [this] { closeWindow(); }); | 935 | connect(w, &PlasmaWindowInterface::closeRequested, this, [this] { closeWindow(); }); | ||
936 | connect(w, &PlasmaWindowInterface::moveRequested, this, | 936 | connect(w, &PlasmaWindowInterface::moveRequested, this, | ||
937 | [this] { | 937 | [this] { | ||
938 | Cursor::setPos(geometry().center()); | 938 | Cursor::setPos(geometry().center()); | ||
939 | performMouseCommand(Options::MouseMove, Cursor::pos()); | 939 | performMouseCommand(Options::MouseMove, Cursor::pos()); | ||
940 | } | 940 | } | ||
▲ Show 20 Lines • Show All 456 Lines • ▼ Show 20 Line(s) | 1396 | { | |||
1397 | const QRect deco_rect = visibleRect(); | 1397 | const QRect deco_rect = visibleRect(); | ||
1398 | addLayerRepaint(m_visibleRectBeforeGeometryUpdate); | 1398 | addLayerRepaint(m_visibleRectBeforeGeometryUpdate); | ||
1399 | addLayerRepaint(deco_rect); // trigger repaint of window's new location | 1399 | addLayerRepaint(deco_rect); // trigger repaint of window's new location | ||
1400 | m_visibleRectBeforeGeometryUpdate = deco_rect; | 1400 | m_visibleRectBeforeGeometryUpdate = deco_rect; | ||
1401 | } | 1401 | } | ||
1402 | 1402 | | |||
1403 | void AbstractClient::updateGeometryBeforeUpdateBlocking() | 1403 | void AbstractClient::updateGeometryBeforeUpdateBlocking() | ||
1404 | { | 1404 | { | ||
1405 | m_geometryBeforeUpdateBlocking = geom; | 1405 | m_geometryBeforeUpdateBlocking = geometry(); | ||
1406 | } | 1406 | } | ||
1407 | 1407 | | |||
1408 | void AbstractClient::updateTabGroupStates(TabGroup::States) | 1408 | void AbstractClient::updateTabGroupStates(TabGroup::States) | ||
1409 | { | 1409 | { | ||
1410 | } | 1410 | } | ||
1411 | 1411 | | |||
1412 | void AbstractClient::doMove(int, int) | 1412 | void AbstractClient::doMove(int, int) | ||
1413 | { | 1413 | { | ||
▲ Show 20 Lines • Show All 682 Lines • Show Last 20 Lines |