Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/xrender/scene_xrender.cpp
Show First 20 Lines • Show All 458 Lines • ▼ Show 20 Line(s) | 422 | { | |||
---|---|---|---|---|---|
459 | const QRect wr = mapToScreen(mask, data, QRect(0, 0, width(), height())); | 459 | const QRect wr = mapToScreen(mask, data, QRect(0, 0, width(), height())); | ||
460 | QRect cr = QRect(toplevel->clientPos(), toplevel->clientSize()); // Content rect (in the buffer) | 460 | QRect cr = QRect(toplevel->clientPos(), toplevel->clientSize()); // Content rect (in the buffer) | ||
461 | qreal xscale = 1; | 461 | qreal xscale = 1; | ||
462 | qreal yscale = 1; | 462 | qreal yscale = 1; | ||
463 | bool scaled = false; | 463 | bool scaled = false; | ||
464 | 464 | | |||
465 | X11Client *client = dynamic_cast<X11Client *>(toplevel); | 465 | X11Client *client = dynamic_cast<X11Client *>(toplevel); | ||
466 | Deleted *deleted = dynamic_cast<Deleted*>(toplevel); | 466 | Deleted *deleted = dynamic_cast<Deleted*>(toplevel); | ||
467 | const QRect decorationRect = toplevel->decorationRect(); | 467 | const QRect decorationRect = toplevel->rect(); | ||
468 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | 468 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | ||
469 | true) { | 469 | true) { | ||
470 | // decorated client | 470 | // decorated client | ||
471 | transformed_shape = decorationRect; | 471 | transformed_shape = decorationRect; | ||
472 | if (toplevel->shape()) { | 472 | if (toplevel->shape()) { | ||
473 | // "xeyes" + decoration | 473 | // "xeyes" + decoration | ||
474 | transformed_shape -= bufferToWindowRect(cr); | 474 | transformed_shape -= bufferToWindowRect(cr); | ||
475 | transformed_shape += bufferToWindowRegion(bufferShape()); | 475 | transformed_shape += bufferToWindowRegion(bufferShape()); | ||
▲ Show 20 Lines • Show All 880 Lines • Show Last 20 Lines |