aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-01-23 00:47:38 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 05:07:49 +0100
commit485d626769c53c7d72ffad2f4e8623d6ce897662 (patch)
treeece8a3df05c586f6782d871fe5a5c9c4617d70f1 /nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
parent2853ab292345ef5d1c690289f9d55a0ccdf32450 (diff)
downloadnx-libs-485d626769c53c7d72ffad2f4e8623d6ce897662.tar.gz
nx-libs-485d626769c53c7d72ffad2f4e8623d6ce897662.tar.bz2
nx-libs-485d626769c53c7d72ffad2f4e8623d6ce897662.zip
Lift dix to xorg-xserver-1.3.0.0 state
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXproperty.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXproperty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c b/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
index 882dbe61b..4482c29a6 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
@@ -208,14 +208,11 @@ ChangeWindowProperty(WindowPtr pWin, Atom property, Atom type, int format,
Bool sendevent)
{
PropertyPtr pProp;
- xEvent event;
int sizeInBytes;
int totalSize;
void * data;
int copySize;
- memset(&event, 0, sizeof(xEvent));
-
sizeInBytes = format>>3;
totalSize = len * sizeInBytes;
@@ -320,6 +317,8 @@ ChangeWindowProperty(WindowPtr pWin, Atom property, Atom type, int format,
}
if (sendevent)
{
+ xEvent event;
+ memset(&event, 0, sizeof(xEvent));
event.u.u.type = PropertyNotify;
event.u.property.window = pWin->drawable.id;
event.u.property.state = PropertyNewValue;