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
eb51bcb6
You need to sign in or sign up before continuing.
Commit
eb51bcb6
authored
Nov 17, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: drop superflous variable
parent
8574c233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+7
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
eb51bcb6
...
@@ -2113,8 +2113,6 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
...
@@ -2113,8 +2113,6 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
*/
*/
Bool
nxagentInitClipboard
(
WindowPtr
pWin
)
Bool
nxagentInitClipboard
(
WindowPtr
pWin
)
{
{
Window
iWindow
=
nxagentWindow
(
pWin
);
#ifdef DEBUG
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Got called.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: Got called.
\n
"
,
__func__
);
#endif
#endif
...
@@ -2141,7 +2139,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2141,7 +2139,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#endif
#endif
agentClipboardInitialized
=
False
;
agentClipboardInitialized
=
False
;
serverWindow
=
iWindow
;
serverWindow
=
nxagentWindow
(
pWin
)
;
/*
/*
* Local property to hold pasted data.
* Local property to hold pasted data.
...
@@ -2165,10 +2163,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2165,10 +2163,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"%s: Setting owner of selection [%s][%d] on window 0x%x
\n
"
,
__func__
,
fprintf
(
stderr
,
"%s: Setting owner of selection [%s][%d] on window 0x%x
\n
"
,
__func__
,
"NX_CUT_BUFFER_SERVER"
,
(
int
)
serverCutProperty
,
i
Window
);
"NX_CUT_BUFFER_SERVER"
,
(
int
)
serverCutProperty
,
server
Window
);
#endif
#endif
XSetSelectionOwner
(
nxagentDisplay
,
serverCutProperty
,
i
Window
,
CurrentTime
);
XSetSelectionOwner
(
nxagentDisplay
,
serverCutProperty
,
server
Window
,
CurrentTime
);
if
(
XQueryExtension
(
nxagentDisplay
,
if
(
XQueryExtension
(
nxagentDisplay
,
"XFIXES"
,
"XFIXES"
,
...
@@ -2186,7 +2184,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2186,7 +2184,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
for
(
int
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
for
(
int
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
{
XFixesSelectSelectionInput
(
nxagentDisplay
,
i
Window
,
XFixesSelectSelectionInput
(
nxagentDisplay
,
server
Window
,
lastSelectionOwner
[
i
].
selection
,
lastSelectionOwner
[
i
].
selection
,
XFixesSetSelectionOwnerNotifyMask
|
XFixesSetSelectionOwnerNotifyMask
|
XFixesSelectionWindowDestroyNotifyMask
|
XFixesSelectionWindowDestroyNotifyMask
|
...
@@ -2209,10 +2207,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2209,10 +2207,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#ifdef TEST
#ifdef TEST
fprintf(stderr, "%s: setting the ownership of %s to %lx"
fprintf(stderr, "%s: setting the ownership of %s to %lx"
" and registering for PropertyChangeMask events\n", __func__,
" and registering for PropertyChangeMask events\n", __func__,
validateString(XGetAtomName(nxagentDisplay, nxagentAtoms[10])),
i
Window);
validateString(XGetAtomName(nxagentDisplay, nxagentAtoms[10])),
server
Window);
#endif
#endif
XSetSelectionOwner(nxagentDisplay, nxagentAtoms[10],
i
Window, CurrentTime);
XSetSelectionOwner(nxagentDisplay, nxagentAtoms[10],
server
Window, CurrentTime);
pWin -> eventMask |= PropertyChangeMask;
pWin -> eventMask |= PropertyChangeMask;
nxagentChangeWindowAttributes(pWin, CWEventMask);
nxagentChangeWindowAttributes(pWin, CWEventMask);
}
}
...
@@ -2233,7 +2231,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2233,7 +2231,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
*/
*/
if
(
lastSelectionOwner
[
i
].
client
&&
lastSelectionOwner
[
i
].
window
)
if
(
lastSelectionOwner
[
i
].
client
&&
lastSelectionOwner
[
i
].
window
)
{
{
XSetSelectionOwner
(
nxagentDisplay
,
lastSelectionOwner
[
i
].
selection
,
i
Window
,
CurrentTime
);
XSetSelectionOwner
(
nxagentDisplay
,
lastSelectionOwner
[
i
].
selection
,
server
Window
,
CurrentTime
);
}
}
}
}
}
}
...
...
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