Changeset View
Changeset View
Standalone View
Standalone View
rules.cpp
Show First 20 Lines • Show All 899 Lines • ▼ Show 20 Line(s) | |||||
900 | // Applies Force, ForceTemporarily and ApplyNow rules | 900 | // Applies Force, ForceTemporarily and ApplyNow rules | ||
901 | // Used e.g. after the rules have been modified using the kcm. | 901 | // Used e.g. after the rules have been modified using the kcm. | ||
902 | void AbstractClient::applyWindowRules() | 902 | void AbstractClient::applyWindowRules() | ||
903 | { | 903 | { | ||
904 | // apply force rules | 904 | // apply force rules | ||
905 | // Placement - does need explicit update, just like some others below | 905 | // Placement - does need explicit update, just like some others below | ||
906 | // Geometry : setGeometry() doesn't check rules | 906 | // Geometry : setGeometry() doesn't check rules | ||
907 | auto client_rules = rules(); | 907 | auto client_rules = rules(); | ||
908 | QRect orig_geom = QRect(pos(), sizeForClientSize(clientSize())); // handle shading | 908 | QRect orig_geom = QRect(pos(), adjustedSize()); // handle shading | ||
909 | QRect geom = client_rules->checkGeometry(orig_geom); | 909 | QRect geom = client_rules->checkGeometry(orig_geom); | ||
910 | if (geom != orig_geom) | 910 | if (geom != orig_geom) | ||
911 | setFrameGeometry(geom); | 911 | setFrameGeometry(geom); | ||
912 | // MinSize, MaxSize handled by Geometry | 912 | // MinSize, MaxSize handled by Geometry | ||
913 | // IgnoreGeometry | 913 | // IgnoreGeometry | ||
914 | setDesktop(desktop()); | 914 | setDesktop(desktop()); | ||
915 | workspace()->sendClientToScreen(this, screen()); | 915 | workspace()->sendClientToScreen(this, screen()); | ||
916 | setOnActivities(activities()); | 916 | setOnActivities(activities()); | ||
▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines |