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
b1efdd94
Commit
b1efdd94
authored
Jun 03, 2020
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: fix indentation in nxagentMaximizeToFullScreen
parent
f1e543b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+37
-37
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
b1efdd94
...
...
@@ -341,7 +341,7 @@ void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
*/
Window
root
=
RootWindow
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
Window
root
=
RootWindow
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
/*
FIXME: We'll check for ReparentNotify and LeaveNotify events after
...
...
@@ -351,55 +351,55 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
unnecessary.
*/
/* only reparent if necessary. FIXME: also check if the desired coordinates match */
/* only reparent if necessary. FIXME: also check if the desired coordinates match */
if
(
!
nxagentIsParentOf
(
nxagentDisplay
,
root
,
nxagentFullscreenWindow
))
{
XReparentWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
,
root
,
0
,
0
);
if
(
!
nxagentIsParentOf
(
nxagentDisplay
,
root
,
nxagentFullscreenWindow
))
{
XReparentWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
,
root
,
0
,
0
);
for
(
int
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
XEvent
e
;
for
(
int
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
XEvent
e
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentMaximizeToFullscreen: WARNING! Going to wait for the ReparentNotify event [%d].
\n
"
,
i
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentMaximizeToFullscreen: WARNING! Going to wait for the ReparentNotify event [%d].
\n
"
,
i
);
#endif
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
ReparentNotify
,
&
e
))
{
break
;
}
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
ReparentNotify
,
&
e
))
{
break
;
}
XSync
(
nxagentDisplay
,
0
);
XSync
(
nxagentDisplay
,
0
);
nxagentWaitEvents
(
nxagentDisplay
,
50
);
}
}
else
{
#ifdef TEST
fprintf
(
stderr
,
"%s: FullscreenWindow already is child of root window - skipping reparenting,
\n
"
,
__func__
);
#endif
nxagentWaitEvents
(
nxagentDisplay
,
50
);
}
}
else
{
#ifdef TEST
fprintf
(
stderr
,
"%s: FullscreenWindow already is child of root window - skipping reparenting,
\n
"
,
__func__
);
#endif
}
XMapRaised
(
nxagentDisplay
,
nxagentFullscreenWindow
);
XIconifyWindow
(
nxagentDisplay
,
nxagentIconWindow
,
DefaultScreen
(
nxagentDisplay
));
/* swallow all LeaveNotify events for the FullscreenWindow;
Normally this does not swallow anything these days, but when
using fvwm you see one of these events here. */
while
(
1
)
{
XEvent
e
;
if
(
!
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
LeaveNotify
,
&
e
))
break
;
#ifdef TEST
fprintf
(
stderr
,
"%s: swallowing LeaveNotify event
\n
"
,
__func__
);
#endif
}
/* swallow all LeaveNotify events for the FullscreenWindow;
Normally this does not swallow anything these days, but when
using fvwm you see one of these events here. */
while
(
1
)
{
XEvent
e
;
if
(
!
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
LeaveNotify
,
&
e
))
break
;
#ifdef TEST
fprintf
(
stderr
,
"%s: swallowing LeaveNotify event
\n
"
,
__func__
);
#endif
}
/*
XMapWindow(nxagentDisplay, nxagentIconWindow);
...
...
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