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
c233eec5
Commit
c233eec5
authored
Aug 03, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: introduce SendEventToClient helper
parent
2ee7626a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+12
-15
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
c233eec5
...
...
@@ -401,6 +401,11 @@ Status SendSelectionNotifyEventToServer(XSelectionEvent *event_to_send)
return
result
;
}
int
SendEventToClient
(
ClientPtr
client
,
xEvent
*
pEvents
)
{
return
TryClientEvents
(
client
,
pEvents
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
}
Bool
nxagentValidServerTargets
(
Atom
target
)
{
if
(
target
==
XA_STRING
)
...
...
@@ -516,9 +521,7 @@ void nxagentClearSelection(XEvent *X)
x
.
u
.
selectionClear
.
window
=
lastSelectionOwner
[
i
].
window
;
x
.
u
.
selectionClear
.
atom
=
CurrentSelections
[
i
].
selection
;
(
void
)
TryClientEvents
(
lastSelectionOwner
[
i
].
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
lastSelectionOwner
[
i
].
client
,
&
x
);
}
CurrentSelections
[
i
].
window
=
screenInfo
.
screens
[
0
]
->
root
->
drawable
.
id
;
...
...
@@ -687,9 +690,7 @@ FIXME: Do we need this?
x
.
u
.
selectionRequest
.
property
=
clientCutProperty
;
(
void
)
TryClientEvents
(
lastSelectionOwner
[
i
].
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
/* CantBeFiltered */
,
NullGrab
);
SendEventToClient
(
lastSelectionOwner
[
i
].
client
,
&
x
);
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Executed TryClientEvents with clientCutProperty.
\n
"
,
__func__
);
...
...
@@ -742,8 +743,7 @@ void nxagentSendSelectionNotify(Atom property)
x
.
u
.
selectionNotify
.
property
=
property
;
TryClientEvents
(
lastClientClientPtr
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
lastClientClientPtr
,
&
x
);
return
;
}
...
...
@@ -1415,8 +1415,7 @@ FIXME: Why this pointer can be not a valid
x
.
u
.
selectionNotify
.
target
=
target
;
x
.
u
.
selectionNotify
.
property
=
None
;
(
void
)
TryClientEvents
(
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
client
,
&
x
);
}
int
nxagentConvertSelection
(
ClientPtr
client
,
WindowPtr
pWin
,
Atom
selection
,
...
...
@@ -1521,8 +1520,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
x
.
u
.
selectionNotify
.
target
=
target
;
x
.
u
.
selectionNotify
.
property
=
property
;
(
void
)
TryClientEvents
(
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
client
,
&
x
);
return
1
;
}
...
...
@@ -1554,8 +1552,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
x
.
u
.
selectionNotify
.
target
=
target
;
x
.
u
.
selectionNotify
.
property
=
property
;
(
void
)
TryClientEvents
(
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
client
,
&
x
);
return
1
;
...
...
@@ -1642,7 +1639,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
x
.
u
.
selectionNotify
.
selection
=
selection
;
x
.
u
.
selectionNotify
.
target
=
target
;
x
.
u
.
selectionNotify
.
property
=
None
;
(
void
)
TryClientEvents
(
client
,
&
x
,
1
,
NoEventMask
,
NoEventMask
,
NullGrab
);
SendEventToClient
(
client
,
&
x
);
return
1
;
}
return
0
;
...
...
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