summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2015-11-24 08:31:21 -0500
committerAdam Jackson <ajax@redhat.com>2015-11-30 10:24:53 -0500
commiteb36924ead40564325aa56d54a973dc8fb4eae83 (patch)
treee0ba583771642a85a13800fe6752f41008350364
parent4affa75a90d2455c81087b930126ad7adfd019f0 (diff)
dix: Remove redundant ChangeWindowProperty
Use dixChangeWindowProperty(serverClient, ...) instead. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r--dix/property.c8
-rw-r--r--hw/xfree86/common/xf86Events.c7
-rw-r--r--include/property.h9
3 files changed, 4 insertions, 20 deletions
diff --git a/dix/property.c b/dix/property.c
index 99608af72..92c25586c 100644
--- a/dix/property.c
+++ b/dix/property.c
@@ -355,14 +355,6 @@ dixChangeWindowProperty(ClientPtr pClient, WindowPtr pWin, Atom property,
}
int
-ChangeWindowProperty(WindowPtr pWin, Atom property, Atom type, int format,
- int mode, unsigned long len, void *value, Bool sendevent)
-{
- return dixChangeWindowProperty(serverClient, pWin, property, type, format,
- mode, len, value, sendevent);
-}
-
-int
DeleteProperty(ClientPtr client, WindowPtr pWin, Atom propName)
{
PropertyPtr pProp, prevProp;
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 6570f0be9..709afd6f9 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -448,9 +448,10 @@ xf86UpdateHasVTProperty(Bool hasVT)
if (property_name == BAD_RESOURCE)
FatalError("Failed to retrieve \"HAS_VT\" atom\n");
for (i = 0; i < xf86NumScreens; i++) {
- ChangeWindowProperty(xf86ScrnToScreen(xf86Screens[i])->root,
- property_name, XA_INTEGER, 32,
- PropModeReplace, 1, &value, TRUE);
+ dixChangeWindowProperty(serverClient,
+ xf86ScrnToScreen(xf86Screens[i])->root,
+ property_name, XA_INTEGER, 32,
+ PropModeReplace, 1, &value, TRUE);
}
}
diff --git a/include/property.h b/include/property.h
index e350513a4..be875e917 100644
--- a/include/property.h
+++ b/include/property.h
@@ -67,15 +67,6 @@ extern _X_EXPORT int dixChangeWindowProperty(ClientPtr pClient,
void *value,
Bool sendevent);
-extern _X_EXPORT int ChangeWindowProperty(WindowPtr pWin,
- Atom property,
- Atom type,
- int format,
- int mode,
- unsigned long len,
- void *value,
- Bool sendevent);
-
extern _X_EXPORT int DeleteProperty(ClientPtr /*client */ ,
WindowPtr /*pWin */ ,
Atom /*propName */ );