Fixed data type for _KDE_NET_WM_BLUR_BEHIND_REGION
REVIEW: 121459
This commit is contained in:
parent
5ceb1b4f75
commit
97de9856ea
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const
|
||||||
QRegion region;
|
QRegion region;
|
||||||
|
|
||||||
const QByteArray value = w->readProperty(net_wm_blur_region, XCB_ATOM_CARDINAL, 32);
|
const QByteArray value = w->readProperty(net_wm_blur_region, XCB_ATOM_CARDINAL, 32);
|
||||||
if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) {
|
if (value.size() > 0 && !(value.size() % (4 * sizeof(uint32_t)))) {
|
||||||
const unsigned long *cardinals = reinterpret_cast<const unsigned long*>(value.constData());
|
const uint32_t *cardinals = reinterpret_cast<const uint32_t*>(value.constData());
|
||||||
for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) {
|
for (unsigned int i = 0; i < value.size() / sizeof(uint32_t);) {
|
||||||
int x = cardinals[i++];
|
int x = cardinals[i++];
|
||||||
int y = cardinals[i++];
|
int y = cardinals[i++];
|
||||||
int w = cardinals[i++];
|
int w = cardinals[i++];
|
||||||
|
|
Loading…
Reference in a new issue