]> source.dussan.org Git - tigervnc.git/commitdiff
Use dixChangeWindowProperty() instead of ChangeWindowProperty()
authorPierre Ossman <ossman@cendio.se>
Mon, 19 Dec 2016 09:27:06 +0000 (10:27 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 19 Dec 2016 09:27:06 +0000 (10:27 +0100)
ChangeWindowProperty() was removed upstream because it was redundant,
and dixChangeWindowProperty() has been around since 1.5 so we can
safely use that.

unix/xserver/hw/vnc/vncSelection.c

index e50548a42ac5d937b1916f488fb635e30694708b..6a8fdc31a5600c2643d0b9a91dee0a6368f00e9b 100644 (file)
@@ -230,23 +230,24 @@ static int vncConvertSelection(ClientPtr client, Atom selection,
     Atom targets[] = { xaTARGETS, xaTIMESTAMP,
                        xaSTRING, xaTEXT, xaUTF8_STRING };
 
-    rc = ChangeWindowProperty(pWin, realProperty, XA_ATOM, 32,
-                              PropModeReplace,
-                              sizeof(targets)/sizeof(targets[0]),
-                              targets, TRUE);
+    rc = dixChangeWindowProperty(serverClient, pWin, realProperty,
+                                 XA_ATOM, 32, PropModeReplace,
+                                 sizeof(targets)/sizeof(targets[0]),
+                                 targets, TRUE);
     if (rc != Success)
       return rc;
   } else if (target == xaTIMESTAMP) {
-    rc = ChangeWindowProperty(pWin, realProperty, XA_INTEGER, 32,
-                              PropModeReplace, 1,
-                              &pSel->lastTimeChanged.milliseconds,
-                              TRUE);
+    rc = dixChangeWindowProperty(serverClient, pWin, realProperty,
+                                 XA_INTEGER, 32, PropModeReplace, 1,
+                                 &pSel->lastTimeChanged.milliseconds,
+                                 TRUE);
     if (rc != Success)
       return rc;
   } else if ((target == xaSTRING) || (target == xaTEXT)) {
-    rc = ChangeWindowProperty(pWin, realProperty, XA_STRING, 8,
-                              PropModeReplace, clientCutTextLen,
-                              clientCutText, TRUE);
+    rc = dixChangeWindowProperty(serverClient, pWin, realProperty,
+                                 XA_STRING, 8, PropModeReplace,
+                                 clientCutTextLen, clientCutText,
+                                 TRUE);
     if (rc != Success)
       return rc;
   } else if (target == xaUTF8_STRING) {
@@ -279,8 +280,9 @@ static int vncConvertSelection(ClientPtr client, Atom selection,
       }
     }
 
-    rc = ChangeWindowProperty(pWin, realProperty, xaUTF8_STRING, 8,
-                              PropModeReplace, len, buffer, TRUE);
+    rc = dixChangeWindowProperty(serverClient, pWin, realProperty,
+                                 xaUTF8_STRING, 8, PropModeReplace,
+                                 len, buffer, TRUE);
     free(buffer);
     if (rc != Success)
       return rc;