Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 1938 Lines • ▼ Show 20 Line(s) | |||||
1939 | 1939 | | |||
1940 | void EffectWindowImpl::setSceneWindow(Scene::Window* w) | 1940 | void EffectWindowImpl::setSceneWindow(Scene::Window* w) | ||
1941 | { | 1941 | { | ||
1942 | sw = w; | 1942 | sw = w; | ||
1943 | } | 1943 | } | ||
1944 | 1944 | | |||
1945 | QRegion EffectWindowImpl::shape() const | 1945 | QRegion EffectWindowImpl::shape() const | ||
1946 | { | 1946 | { | ||
1947 | return sw ? sw->shape() : geometry(); | 1947 | if (isX11Client() && sceneWindow()) { | ||
1948 | return sceneWindow()->bufferShape(); | ||||
1949 | } | ||||
1950 | return geometry(); | ||||
1948 | } | 1951 | } | ||
1949 | 1952 | | |||
1950 | QRect EffectWindowImpl::decorationInnerRect() const | 1953 | QRect EffectWindowImpl::decorationInnerRect() const | ||
1951 | { | 1954 | { | ||
1952 | auto client = qobject_cast<X11Client *>(toplevel); | 1955 | auto client = qobject_cast<X11Client *>(toplevel); | ||
1953 | return client ? client->transparentRect() : contentsRect(); | 1956 | return client ? client->transparentRect() : contentsRect(); | ||
1954 | } | 1957 | } | ||
1955 | 1958 | | |||
▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines |