Changeset View
Changeset View
Standalone View
Standalone View
toplevel.cpp
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "toplevel.h" | 20 | #include "toplevel.h" | ||
21 | 21 | | |||
22 | #ifdef KWIN_BUILD_ACTIVITIES | 22 | #ifdef KWIN_BUILD_ACTIVITIES | ||
23 | #include "activities.h" | 23 | #include "activities.h" | ||
24 | #endif | 24 | #endif | ||
25 | #include "atoms.h" | 25 | #include "atoms.h" | ||
26 | #include "client.h" | 26 | #include "x11client.h" | ||
27 | #include "client_machine.h" | 27 | #include "client_machine.h" | ||
28 | #include "composite.h" | 28 | #include "composite.h" | ||
29 | #include "effects.h" | 29 | #include "effects.h" | ||
30 | #include "screens.h" | 30 | #include "screens.h" | ||
31 | #include "shadow.h" | 31 | #include "shadow.h" | ||
32 | #include "workspace.h" | 32 | #include "workspace.h" | ||
33 | #include "xcbutils.h" | 33 | #include "xcbutils.h" | ||
34 | 34 | | |||
▲ Show 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | |||||
321 | bool Toplevel::compositing() const | 321 | bool Toplevel::compositing() const | ||
322 | { | 322 | { | ||
323 | if (!Workspace::self()) { | 323 | if (!Workspace::self()) { | ||
324 | return false; | 324 | return false; | ||
325 | } | 325 | } | ||
326 | return Workspace::self()->compositing(); | 326 | return Workspace::self()->compositing(); | ||
327 | } | 327 | } | ||
328 | 328 | | |||
329 | void Client::damageNotifyEvent() | 329 | void X11Client::damageNotifyEvent() | ||
330 | { | 330 | { | ||
331 | if (syncRequest.isPending && isResize()) { | 331 | if (syncRequest.isPending && isResize()) { | ||
332 | emit damaged(this, QRect()); | 332 | emit damaged(this, QRect()); | ||
333 | m_isDamaged = true; | 333 | m_isDamaged = true; | ||
334 | return; | 334 | return; | ||
335 | } | 335 | } | ||
336 | 336 | | |||
337 | if (!ready_for_painting) { // avoid "setReadyForPainting()" function calling overhead | 337 | if (!ready_for_painting) { // avoid "setReadyForPainting()" function calling overhead | ||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |