Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 71 | { | |||
---|---|---|---|---|---|
79 | saveOldScreenSizes(); // after updateClientArea(), so that one still uses the previous one | 79 | saveOldScreenSizes(); // after updateClientArea(), so that one still uses the previous one | ||
80 | 80 | | |||
81 | // TODO: emit a signal instead and remove the deep function calls into edges and effects | 81 | // TODO: emit a signal instead and remove the deep function calls into edges and effects | ||
82 | ScreenEdges::self()->recreateEdges(); | 82 | ScreenEdges::self()->recreateEdges(); | ||
83 | 83 | | |||
84 | if (effects) { | 84 | if (effects) { | ||
85 | static_cast<EffectsHandlerImpl*>(effects)->desktopResized(geom.size()); | 85 | static_cast<EffectsHandlerImpl*>(effects)->desktopResized(geom.size()); | ||
86 | } | 86 | } | ||
87 | | ||||
88 | //Update the shape of the overlay window to fix redrawing of unredirected windows. bug#305781 | | |||
89 | m_compositor->checkUnredirect(true); | | |||
90 | } | 87 | } | ||
91 | 88 | | |||
92 | void Workspace::saveOldScreenSizes() | 89 | void Workspace::saveOldScreenSizes() | ||
93 | { | 90 | { | ||
94 | olddisplaysize = QSize( displayWidth(), displayHeight()); | 91 | olddisplaysize = QSize( displayWidth(), displayHeight()); | ||
95 | oldscreensizes.clear(); | 92 | oldscreensizes.clear(); | ||
96 | for( int i = 0; | 93 | for( int i = 0; | ||
97 | i < screens()->count(); | 94 | i < screens()->count(); | ||
▲ Show 20 Lines • Show All 2005 Lines • ▼ Show 20 Line(s) | 2095 | if (areGeometryUpdatesBlocked()) { | |||
2103 | else | 2100 | else | ||
2104 | setPendingGeometryUpdate(PendingGeometryNormal); | 2101 | setPendingGeometryUpdate(PendingGeometryNormal); | ||
2105 | return; | 2102 | return; | ||
2106 | } | 2103 | } | ||
2107 | doMove(x, y); | 2104 | doMove(x, y); | ||
2108 | updateWindowRules(Rules::Position); | 2105 | updateWindowRules(Rules::Position); | ||
2109 | screens()->setCurrent(this); | 2106 | screens()->setCurrent(this); | ||
2110 | workspace()->updateStackingOrder(); | 2107 | workspace()->updateStackingOrder(); | ||
2111 | if (Compositor::isCreated()) { | | |||
2112 | // TODO: move out of geometry.cpp, is this really needed here? | | |||
2113 | Compositor::self()->checkUnredirect(); | | |||
2114 | } | | |||
2115 | // client itself is not damaged | 2108 | // client itself is not damaged | ||
2116 | addRepaintDuringGeometryUpdates(); | 2109 | addRepaintDuringGeometryUpdates(); | ||
2117 | updateGeometryBeforeUpdateBlocking(); | 2110 | updateGeometryBeforeUpdateBlocking(); | ||
2118 | 2111 | | |||
2119 | // Update states of all other windows in this group | 2112 | // Update states of all other windows in this group | ||
2120 | updateTabGroupStates(TabGroup::Geometry); | 2113 | updateTabGroupStates(TabGroup::Geometry); | ||
2121 | emit geometryChanged(); | 2114 | emit geometryChanged(); | ||
2122 | } | 2115 | } | ||
▲ Show 20 Lines • Show All 1382 Lines • Show Last 20 Lines |