1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

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.
This commit is contained in:
Rodolfo García Peñas (kix)
2013-05-10 13:00:23 +02:00
committed by Carlos R. Mafra
parent 1a8316d4c9
commit aa5be46e94

View File

@@ -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