From aa5be46e94b104a1182fbe41c2e6beb01cd41cb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Fri, 10 May 2013 13:00:23 +0200 Subject: [PATCH] InfoPanel: Added info about XRandR in the info dialog 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 7b0b4f28..3ff02142 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 -- 2.11.4.GIT