[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99883: xfns.c (select_visual): Don't
From: |
Jan D. |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99883: xfns.c (select_visual): Don't call error if XGetVisualInfo returns |
Date: |
Mon, 12 Apr 2010 20:58:15 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99883
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Mon 2010-04-12 20:58:15 +0200
message:
xfns.c (select_visual): Don't call error if XGetVisualInfo returns
more than one visual (Bug#5938).
modified:
src/ChangeLog
src/xfns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-04-12 14:32:10 +0000
+++ b/src/ChangeLog 2010-04-12 18:58:15 +0000
@@ -1,3 +1,8 @@
+2010-04-12 Jan Djärv <address@hidden>
+
+ * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
+ more than one visual (Bug#5938).
+
2010-04-12 Dan Nicolaescu <address@hidden>
* Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
Undefine.
=== modified file 'src/xfns.c'
--- a/src/xfns.c 2010-04-10 10:59:46 +0000
+++ b/src/xfns.c 2010-04-12 18:58:15 +0000
@@ -4129,7 +4129,7 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99883: xfns.c (select_visual): Don't call error if XGetVisualInfo returns,
Jan D. <=