mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +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:
committed by
Carlos R. Mafra
parent
1a8316d4c9
commit
aa5be46e94
11
src/dialog.c
11
src/dialog.c
@@ -1258,8 +1258,17 @@ void wShowInfoPanel(WScreen * scr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
strbuf = wstrappend(strbuf, _("\nAdditional support for: WMSPEC"));
|
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
|
#ifdef MWM_HINTS
|
||||||
strbuf = wstrappend(strbuf, " and MWM");
|
strbuf = wstrappend(strbuf, ", MWM");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
|
|||||||
Reference in New Issue
Block a user