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
063813d3
Commit
063813d3
authored
Jun 27, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Aug 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make AutoGrab work in more situations
Especially switchin to/from fullscreen with active AutoGrab was problematic. Works much smoother now.
parent
14d8e0a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+1
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+10
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
063813d3
...
@@ -1699,7 +1699,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
...
@@ -1699,7 +1699,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
#endif
/* NXAGENT_FIXKEYS */
#endif
/* NXAGENT_FIXKEYS */
if
(
nxagentOption
(
AutoGrab
))
if
(
nxagentOption
(
AutoGrab
)
&&
!
nxagentFullscreenWindow
)
{
{
XlibWindow
w
;
XlibWindow
w
;
int
revert_to
;
int
revert_to
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
063813d3
...
@@ -754,7 +754,12 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
...
@@ -754,7 +754,12 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
else
else
{
{
nxagentFullscreenWindow
=
None
;
nxagentFullscreenWindow
=
None
;
nxagentUngrabPointerAndKeyboard
(
NULL
);
/* if we had AutoGrab before entering fullscreen reactivate it now */
if
(
nxagentOption
(
AutoGrab
))
nxagentGrabPointerAndKeyboard
(
NULL
);
else
nxagentUngrabPointerAndKeyboard
(
NULL
);
}
}
}
}
...
@@ -1005,6 +1010,10 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
...
@@ -1005,6 +1010,10 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
XMoveResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
0
],
0
,
0
,
XMoveResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
0
],
0
,
0
,
nxagentOption
(
Width
),
nxagentOption
(
Height
));
nxagentOption
(
Width
),
nxagentOption
(
Height
));
/* if we had AutoGrab before entering fullscreen reactivate it now */
if
(
nxagentOption
(
AutoGrab
))
nxagentGrabPointerAndKeyboard
(
NULL
);
nxagentSetPrintGeometry
(
pScreen
->
myNum
);
nxagentSetPrintGeometry
(
pScreen
->
myNum
);
}
}
...
...
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