summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2017-07-23 17:43:12 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-07-23 17:43:12 (GMT)
commitcd2fc7ba9120fac49ebe6ceaee51bc8eaf802d05 (patch)
tree01b61ee6243f3e4a1f3bdde67ee092fa0b61cfd3
parent5b8d6b25f24bd96ed3fd43ed9e19069a402e5968 (diff)
downloadtdebase-cd2fc7ba.zip
tdebase-cd2fc7ba.tar.gz
Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--twin/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/twin/client.cpp b/twin/client.cpp
index 6581889..ce7461b 100644
--- a/twin/client.cpp
+++ b/twin/client.cpp
@@ -509,7 +509,7 @@ bool Client::isModalSystemNotification() const
int format, result;
unsigned long n, left;
result = XGetWindowProperty(tqt_xdisplay(), window(), atoms->net_wm_system_modal_notification, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, /*(unsigned char **)*/ &data);
- if (result == Success && data != None && format == 32 )
+ if (result == Success && data && format == 32 )
{
return TRUE;
}
@@ -2975,7 +2975,7 @@ bool Client::getWindowOpacity() //query translucency settings from X, returns tr
int format, result;
unsigned long n, left;
result = XGetWindowProperty(tqt_xdisplay(), window(), atoms->net_wm_window_opacity, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, /*(unsigned char **)*/ &data);
- if (result == Success && data != None && format == 32 )
+ if (result == Success && data && format == 32 )
{
opacity_ = *reinterpret_cast< long* >( data );
custom_opacity = true;