kdeui: fix build issue caused by recent X11 changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2017-06-24 02:31:39 +00:00
parent ee20ecfac8
commit 496090d3fa

View file

@ -4270,7 +4270,7 @@ void NETWinInfo::update(const unsigned long dirty_props[]) {
if (XGetWindowProperty(p->display, p->window, kde_net_wm_block_compositing, 0l,
1, False, XA_STRING, &type_ret,
&format_ret, &nitems_ret, &unused, &data_ret) == Success) {
p->blockCompositing = (data_ret != None);
p->blockCompositing = (data_ret != NULL);
if (data_ret) // stupid question to everyone - since the result is "Success", is this check required?
XFree(data_ret);
}