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
may not include XRandR extension).

The string was separated in two by Christophe Curis to allow translation,
as suggested by Alexey I. Froloff.
---
 src/dialog.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/dialog.c b/src/dialog.c
index 7b0b4f2..3ff0214 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -1258,8 +1258,17 @@ void wShowInfoPanel(WScreen * scr)
        }
 
        strbuf = wstrappend(strbuf, _("\nAdditional support for: WMSPEC"));
+
+#ifdef HAVE_XRANDR
+       strbuf = wstrappend(strbuf, ", XRandR ");
+       if (has_randr)
+               strbuf = wstrappend(strbuf, _("(Supported)"));
+       else
+               strbuf = wstrappend(strbuf, _("(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