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
9006e19a
Commit
9006e19a
authored
Aug 05, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: cleanup in nxagentRequestSelection
parent
6f071341
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+13
-16
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
9006e19a
...
...
@@ -724,46 +724,43 @@ FIXME: Do we need this?
lastServerProperty
=
X
->
xselectionrequest
.
property
;
lastServerRequestor
=
X
->
xselectionrequest
.
requestor
;
lastServerTarget
=
X
->
xselectionrequest
.
target
;
lastServerTime
=
X
->
xselectionrequest
.
time
;
/* by dimbor */
if
(
lastServerTarget
!=
XA_STRING
)
lastServerTarget
=
serverUTF8_STRING
;
lastServerTime
=
X
->
xselectionrequest
.
time
;
/* prepare the request (like XConvertSelection, but internally) */
xEvent
x
=
{
0
};
x
.
u
.
u
.
type
=
SelectionRequest
;
x
.
u
.
selectionRequest
.
time
=
GetTimeInMillis
();
x
.
u
.
selectionRequest
.
owner
=
lastSelectionOwner
[
i
].
window
;
x
.
u
.
selectionRequest
.
selection
=
CurrentSelections
[
i
].
selection
;
x
.
u
.
selectionRequest
.
property
=
clientCutProperty
;
x
.
u
.
selectionRequest
.
requestor
=
screenInfo
.
screens
[
0
]
->
root
->
drawable
.
id
;
/* Fictitious window.*/
/*
* Fictitious window.
*/
x
.
u
.
selectionRequest
.
requestor
=
screenInfo
.
screens
[
0
]
->
root
->
drawable
.
id
;
/*
* Don't send the same window, some programs are
* clever and verify cut and paste operations
* inside the same window and don't Notify at all.
* Don't send the same window, some programs are clever and
* verify cut and paste operations inside the same window and
* don't Notify at all.
*
* x.u.selectionRequest.requestor = lastSelectionOwnerWindow;
*/
x
.
u
.
selectionRequest
.
selection
=
CurrentSelections
[
i
].
selection
;
/* by dimbor (idea from zahvatov) */
if
(
X
->
xselectionrequest
.
target
!=
XA_STRING
)
x
.
u
.
selectionRequest
.
target
=
clientUTF8_STRING
;
else
x
.
u
.
selectionRequest
.
target
=
XA_STRING
;
x
.
u
.
selectionRequest
.
property
=
clientCutProperty
;
SendEventToClient
(
lastSelectionOwner
[
i
].
client
,
&
x
);
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Executed TryClientEvents with clientCutProperty.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: sent SelectionRequest event to client [%d] property [%d][%s] target [%d][%s] requestor [0x%x].
\n
"
,
__func__
,
CLINDEX
(
lastSelectionOwner
[
i
].
client
),
x
.
u
.
selectionRequest
.
property
,
NameForAtom
(
x
.
u
.
selectionRequest
.
property
),
x
.
u
.
selectionRequest
.
target
,
NameForAtom
(
x
.
u
.
selectionRequest
.
target
),
x
.
u
.
selectionRequest
.
requestor
);
#endif
}
else
...
...
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