Add type name argument to CreateNewResourceType
Convert all calls of CreateNewResourceType to pass name argument Breaks DIX ABI. ABI versions bumped: Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
committed by
Keith Packard
parent
a11c58fa0c
commit
895f40792a
@@ -26,7 +26,6 @@
|
||||
|
||||
#include "xfixesint.h"
|
||||
#include "xace.h"
|
||||
#include "registry.h"
|
||||
|
||||
static RESTYPE SelectionClientType, SelectionWindowType;
|
||||
static Bool SelectionCallbackRegistered = FALSE;
|
||||
@@ -285,12 +284,9 @@ SelectionFreeWindow (pointer data, XID id)
|
||||
Bool
|
||||
XFixesSelectionInit (void)
|
||||
{
|
||||
SelectionClientType = CreateNewResourceType(SelectionFreeClient);
|
||||
if (SelectionClientType)
|
||||
RegisterResourceName(SelectionClientType, "XFixesSelectionClient");
|
||||
SelectionWindowType = CreateNewResourceType(SelectionFreeWindow);
|
||||
if (SelectionWindowType)
|
||||
RegisterResourceName(SelectionWindowType, "XFixesSelectionWindow");
|
||||
|
||||
SelectionClientType = CreateNewResourceType(SelectionFreeClient,
|
||||
"XFixesSelectionClient");
|
||||
SelectionWindowType = CreateNewResourceType(SelectionFreeWindow,
|
||||
"XFixesSelectionWindow");
|
||||
return SelectionClientType && SelectionWindowType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user