Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osdd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
osdd
Commits
f7e6a0d0
Commit
f7e6a0d0
authored
Jul 17, 2010
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Explain the exit-on-X-server-shutdown trick
parent
0ab80500
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client.c
+2
-0
2 additions, 0 deletions
client.c
with
2 additions
and
0 deletions
client.c
+
2
−
0
View file @
f7e6a0d0
...
@@ -102,6 +102,8 @@ osd_wait(int delay)
...
@@ -102,6 +102,8 @@ osd_wait(int delay)
poll
(
&
pfd
,
1
,
wait_until
-
now
);
poll
(
&
pfd
,
1
,
wait_until
-
now
);
if
(
pfd
.
revents
&
POLLIN
)
if
(
pfd
.
revents
&
POLLIN
)
{
{
// We use the event loop only to detect that the X server has been shut down.
// In such cases, xlib raises an error and exits.
XEvent
ev
;
XEvent
ev
;
while
(
XPending
(
dpy
))
while
(
XPending
(
dpy
))
XNextEvent
(
dpy
,
&
ev
);
XNextEvent
(
dpy
,
&
ev
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment