Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
c02ab70e
You need to sign in or sign up before continuing.
Commit
c02ab70e
authored
May 03, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXdispatch.c: Simplify InitSelections()
by calling upstream version from dispatch.c
parent
718a58fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
dispatch.c
nx-X11/programs/Xserver/dix/dispatch.c
+5
-3
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+2
-6
No files found.
nx-X11/programs/Xserver/dix/dispatch.c
View file @
c02ab70e
...
@@ -213,16 +213,18 @@ UpdateCurrentTimeIf()
...
@@ -213,16 +213,18 @@ UpdateCurrentTimeIf()
currentTime
=
systime
;
currentTime
=
systime
;
}
}
#ifndef NXAGENT_SERVER
void
void
InitSelections
()
#ifdef NXAGENT_SERVER
xorg_InitSelections
(
void
)
#else
InitSelections
(
void
)
#endif
{
{
if
(
CurrentSelections
)
if
(
CurrentSelections
)
free
(
CurrentSelections
);
free
(
CurrentSelections
);
CurrentSelections
=
(
Selection
*
)
NULL
;
CurrentSelections
=
(
Selection
*
)
NULL
;
NumCurrentSelections
=
0
;
NumCurrentSelections
=
0
;
}
}
#endif
/* NXAGENT_SERVER */
#undef SMART_DEBUG
#undef SMART_DEBUG
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
c02ab70e
...
@@ -203,12 +203,9 @@ extern int nxagentMaxSelections;
...
@@ -203,12 +203,9 @@ extern int nxagentMaxSelections;
extern
int
nxOpenFont
(
ClientPtr
,
XID
,
Mask
,
unsigned
,
char
*
);
extern
int
nxOpenFont
(
ClientPtr
,
XID
,
Mask
,
unsigned
,
char
*
);
void
void
InitSelections
()
InitSelections
(
void
)
{
{
if
(
CurrentSelections
)
xorg_InitSelections
();
free
(
CurrentSelections
);
CurrentSelections
=
(
Selection
*
)
NULL
;
NumCurrentSelections
=
0
;
#ifdef NXAGENT_CLIPBOARD
#ifdef NXAGENT_CLIPBOARD
{
{
...
@@ -232,7 +229,6 @@ InitSelections()
...
@@ -232,7 +229,6 @@ InitSelections()
CurrentSelections
[
nxagentClipboardSelection
].
client
=
NullClient
;
CurrentSelections
[
nxagentClipboardSelection
].
client
=
NullClient
;
}
}
#endif
#endif
}
}
#define MAJOROP ((xReq *)client->requestBuffer)->reqType
#define MAJOROP ((xReq *)client->requestBuffer)->reqType
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment