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
17d5e62b
Commit
17d5e62b
authored
Jun 17, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Events.c: use designated initializer in nxagentDeactivatePointerGrab
parent
5cb49714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+17
-15
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
17d5e62b
...
...
@@ -4011,21 +4011,23 @@ void nxagentDeactivatePointerGrab(void)
if
(
grab
)
{
XButtonEvent
X
;
memset
(
&
X
,
0
,
sizeof
(
XButtonEvent
));
X
.
type
=
ButtonRelease
;
X
.
serial
=
0
;
X
.
send_event
=
FALSE
;
X
.
time
=
currentTime
.
milliseconds
;
X
.
display
=
nxagentDisplay
;
X
.
window
=
nxagentWindow
(
grab
->
window
);
X
.
root
=
RootWindow
(
nxagentDisplay
,
0
);
X
.
subwindow
=
0
;
X
.
x
=
X
.
y
=
X
.
x_root
=
X
.
y_root
=
0
;
X
.
state
=
0x100
;
X
.
button
=
1
;
X
.
same_screen
=
TRUE
;
XButtonEvent
X
=
{
.
type
=
ButtonRelease
,
.
serial
=
0
,
.
send_event
=
FALSE
,
.
time
=
currentTime
.
milliseconds
,
.
display
=
nxagentDisplay
,
.
window
=
nxagentWindow
(
grab
->
window
),
.
root
=
RootWindow
(
nxagentDisplay
,
0
),
.
subwindow
=
0
,
.
x
=
0
,
.
y
=
0
,
.
x_root
=
0
,
.
y_root
=
0
,
.
state
=
0x100
,
.
button
=
1
,
.
same_screen
=
TRUE
,
};
XPutBackEvent
(
nxagentDisplay
,
(
XEvent
*
)
&
X
);
}
...
...
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