Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/xrender/scene_xrender.cpp
Show All 21 Lines | |||||
22 | #include "scene_xrender.h" | 22 | #include "scene_xrender.h" | ||
23 | 23 | | |||
24 | #include "utils.h" | 24 | #include "utils.h" | ||
25 | 25 | | |||
26 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 26 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | ||
27 | 27 | | |||
28 | #include "logging.h" | 28 | #include "logging.h" | ||
29 | #include "toplevel.h" | 29 | #include "toplevel.h" | ||
30 | #include "client.h" | 30 | #include "x11client.h" | ||
31 | #include "composite.h" | 31 | #include "composite.h" | ||
32 | #include "deleted.h" | 32 | #include "deleted.h" | ||
33 | #include "effects.h" | 33 | #include "effects.h" | ||
34 | #include "main.h" | 34 | #include "main.h" | ||
35 | #include "overlaywindow.h" | 35 | #include "overlaywindow.h" | ||
36 | #include "platform.h" | 36 | #include "platform.h" | ||
37 | #include "screens.h" | 37 | #include "screens.h" | ||
38 | #include "xcbutils.h" | 38 | #include "xcbutils.h" | ||
▲ Show 20 Lines • Show All 407 Lines • ▼ Show 20 Line(s) | 445 | } else | |||
446 | filter = ImageFilterFast; | 446 | filter = ImageFilterFast; | ||
447 | // do required transformations | 447 | // do required transformations | ||
448 | const QRect wr = mapToScreen(mask, data, QRect(0, 0, width(), height())); | 448 | const QRect wr = mapToScreen(mask, data, QRect(0, 0, width(), height())); | ||
449 | QRect cr = QRect(toplevel->clientPos(), toplevel->clientSize()); // Client rect (in the window) | 449 | QRect cr = QRect(toplevel->clientPos(), toplevel->clientSize()); // Client rect (in the window) | ||
450 | qreal xscale = 1; | 450 | qreal xscale = 1; | ||
451 | qreal yscale = 1; | 451 | qreal yscale = 1; | ||
452 | bool scaled = false; | 452 | bool scaled = false; | ||
453 | 453 | | |||
454 | Client *client = dynamic_cast<Client*>(toplevel); | 454 | X11Client *client = dynamic_cast<X11Client *>(toplevel); | ||
455 | Deleted *deleted = dynamic_cast<Deleted*>(toplevel); | 455 | Deleted *deleted = dynamic_cast<Deleted*>(toplevel); | ||
456 | const QRect decorationRect = toplevel->decorationRect(); | 456 | const QRect decorationRect = toplevel->decorationRect(); | ||
457 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | 457 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | ||
458 | true) { | 458 | true) { | ||
459 | // decorated client | 459 | // decorated client | ||
460 | transformed_shape = decorationRect; | 460 | transformed_shape = decorationRect; | ||
461 | if (toplevel->shape()) { | 461 | if (toplevel->shape()) { | ||
462 | // "xeyes" + decoration | 462 | // "xeyes" + decoration | ||
▲ Show 20 Lines • Show All 869 Lines • Show Last 20 Lines |