Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/xrender/scene_xrender.cpp
Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Line(s) | 412 | { | |||
---|---|---|---|---|---|
457 | const QRect decorationRect = toplevel->decorationRect(); | 457 | const QRect decorationRect = toplevel->decorationRect(); | ||
458 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | 458 | if (((client && !client->noBorder()) || (deleted && !deleted->noBorder())) && | ||
459 | true) { | 459 | true) { | ||
460 | // decorated client | 460 | // decorated client | ||
461 | transformed_shape = decorationRect; | 461 | transformed_shape = decorationRect; | ||
462 | if (toplevel->shape()) { | 462 | if (toplevel->shape()) { | ||
463 | // "xeyes" + decoration | 463 | // "xeyes" + decoration | ||
464 | transformed_shape -= cr; | 464 | transformed_shape -= cr; | ||
465 | transformed_shape += shape(); | 465 | transformed_shape += bufferShape(); | ||
466 | } | 466 | } | ||
467 | } else { | 467 | } else { | ||
468 | transformed_shape = shape(); | 468 | transformed_shape = bufferShape(); | ||
469 | } | 469 | } | ||
470 | if (toplevel->shadow()) { | 470 | if (toplevel->shadow()) { | ||
471 | transformed_shape |= toplevel->shadow()->shadowRegion(); | 471 | transformed_shape |= toplevel->shadow()->shadowRegion(); | ||
472 | } | 472 | } | ||
473 | 473 | | |||
474 | xcb_render_transform_t xform = { | 474 | xcb_render_transform_t xform = { | ||
475 | DOUBLE_TO_FIXED(1), DOUBLE_TO_FIXED(0), DOUBLE_TO_FIXED(0), | 475 | DOUBLE_TO_FIXED(1), DOUBLE_TO_FIXED(0), DOUBLE_TO_FIXED(0), | ||
476 | DOUBLE_TO_FIXED(0), DOUBLE_TO_FIXED(1), DOUBLE_TO_FIXED(0), | 476 | DOUBLE_TO_FIXED(0), DOUBLE_TO_FIXED(1), DOUBLE_TO_FIXED(0), | ||
▲ Show 20 Lines • Show All 870 Lines • Show Last 20 Lines |