Fl::screen_xywh(x, y, w, h, m);
if (!XQueryExtension(fl_display, "RANDR", &xi_major, &ev, &err)) {
- vlog.info(_("Failed to get monitor name because X11 RandR could not be found."));
+ vlog.info(_("Failed to get monitor name because X11 RandR could not be found"));
return -1;
}
XRRScreenResources *res = XRRGetScreenResources(fl_display, DefaultRootWindow(fl_display));
if (!res) {
- vlog.error(_("Failed to get XRRScreenResources for root window."));
+ vlog.error(_("Failed to get XRRScreenResources for root window"));
return -1;
}
if (monitor_found) {
XRROutputInfo *output = XRRGetOutputInfo(fl_display, res, crtc->outputs[j]);
if (!output) {
- vlog.error(_("Failed to get XRROutputInfo for crtc %d, output %d."), i, j);
+ vlog.error(_("Failed to get XRROutputInfo for crtc %d, output %d"), i, j);
continue;
}
std::vector<MonitorIndicesParameter::Monitor> monitors = fetchMonitors();
if (monitors.size() <= 0) {
- vlog.error(_("Failed to get monitors."));
+ vlog.error(_("Failed to get monitors"));
return indices;
}
return false;
if (!parseIndices(value, &indices)) {
- vlog.error(_("Invalid FullScreenSelectedMonitors configuration."));
+ vlog.error(_("Invalid FullScreenSelectedMonitors configuration"));
return false;
}
index = *it + 1;
if (index <= 0 || index > Fl::screen_count())
- vlog.error(_("Monitor index %d does not exist."), index);
+ vlog.error(_("Monitor index %d does not exist"), index);
}
return StringParameter::setParam(value);
std::vector<MonitorIndicesParameter::Monitor> monitors = fetchMonitors();
if (monitors.size() <= 0) {
- vlog.error(_("Failed to get monitors."));
+ vlog.error(_("Failed to get monitors"));
// Don't return, store the configuration anyways.
}
int v = strtol(number.c_str(), NULL, 0);
if (v <= 0) {
- vlog.error(_("The given monitor index(%s) is too small to be valid."), number.c_str());
+ vlog.error(_("The given monitor index(%s) is too small to be valid"), number.c_str());
return false;
}
if (v > INT_MAX) {
- vlog.error(_("The given monitor index (%s) is too large to be valid."), number.c_str());
+ vlog.error(_("The given monitor index (%s) is too large to be valid"), number.c_str());
return false;
}
migrateDeprecatedOptions()
{
if (fullScreenAllMonitors) {
- vlog.info(_("FullScreenAllMonitors is deprecated, set FullScreenMode to 'all' instead."));
+ vlog.info(_("FullScreenAllMonitors is deprecated, set FullScreenMode to 'all' instead"));
fullScreenMode.setParam("all");
}