Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
83725342
Commit
83725342
authored
Apr 12, 2010
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfns.c (select_visual): Don't call error if XGetVisualInfo returns
more than one visual (Bug#5938).
parent
398a825b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/xfns.c
src/xfns.c
+1
-1
No files found.
src/ChangeLog
View file @
83725342
2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
* xfns.c (select_visual): Don't call error if XGetVisualInfo returns
more than one visual (Bug#5938).
2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
* Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
...
...
src/xfns.c
View file @
83725342
...
...
@@ -4129,7 +4129,7 @@ select_visual (dpyinfo)
vinfo_template
.
screen
=
XScreenNumberOfScreen
(
screen
);
vinfo
=
XGetVisualInfo
(
dpy
,
VisualIDMask
|
VisualScreenMask
,
&
vinfo_template
,
&
n_visuals
);
if
(
n_visuals
!
=
1
)
if
(
n_visuals
<
=
0
)
fatal
(
"Can't get proper X visual info"
);
dpyinfo
->
n_planes
=
vinfo
->
depth
;
...
...
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