From: "Rodolfo García Peñas (kix)" <[email protected]>

This patch includes info about XRandR extension in the info panel
dialog. If wmaker was compiled with xrandr support, then the dialog
show the XRandR info. The info includes if the X-Server supports or not
XRandR (wmaker could be compiled with XRandR support, but the X Server
doesn't include XRandR extension).

This patch changes the "and" word with "," to avoid a very long string
that goes out the dialog space.

Thanks to Christophe for the comments about the right label.
---
 src/dialog.c |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/dialog.c b/src/dialog.c
index 91a3d83..2d0b311 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -1242,9 +1242,17 @@ void wShowInfoPanel(WScreen * scr)
                strbuf = wstrappend(strbuf, " ");
        }
 
-       strbuf = wstrappend(strbuf, _("\nAdditional support for: WMSPEC"));
+       strbuf = wstrappend(strbuf, _("\nAdditional support for: WMSPEC, "));
+
+#ifdef HAVE_XRANDR
+       if (has_randr)
+               strbuf = wstrappend(strbuf, "XRandR (Supported), ");
+       else
+               strbuf = wstrappend(strbuf, "XRandR (Unsupported), ");
+#endif
+
 #ifdef MWM_HINTS
-       strbuf = wstrappend(strbuf, " and MWM");
+       strbuf = wstrappend(strbuf, "MWM");
 #endif
 
 #ifdef XINERAMA
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to