summaryrefslogtreecommitdiffstats
path: root/krandr
diff options
context:
space:
mode:
authorRoman Savochenko <rom_as@oscada.org>2015-12-12 14:45:32 +0100
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:23:05 +0100
commit3c724bb9fbd8a4d11ff824cfaf200253f432b79e (patch)
tree323efb95f4fea538084be42df108c78f071e031a /krandr
parenta6ec8c20eb496b20818a285a4ea5291c25403835 (diff)
downloadtdelibs-3c724bb9fbd8a4d11ff824cfaf200253f432b79e.tar.gz
tdelibs-3c724bb9fbd8a4d11ff824cfaf200253f432b79e.zip
Fix wrong options to xrandr in tderandr
This resolves Bug 1913 Signed-off-by: Roman Savochenko <rom_as@oscada.org> (cherry picked from commit 4a9b7a937163733a75bc7ef6ffea8feb6713149f)
Diffstat (limited to 'krandr')
-rw-r--r--krandr/libkrandr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc
index 01aeb7d3f..9ee9650f5 100644
--- a/krandr/libkrandr.cc
+++ b/krandr/libkrandr.cc
@@ -598,7 +598,7 @@ bool KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQPtrList<SingleScreen
if (screendata->is_primary || screendata->is_extended) {
command.append(TQString(" --mode %1x%2").arg(screendata->current_x_pixel_count).arg(screendata->current_y_pixel_count));
command.append(TQString(" --pos %1x%2").arg(screendata->absolute_x_position).arg(screendata->absolute_y_position));
- command.append(TQString(" --refresh %1").arg((*screendata->refresh_rates.at(screendata->current_refresh_rate_index)).replace("Hz", "")));
+ command.append(TQString(" --refresh %1").arg(atoi((*screendata->refresh_rates.at(screendata->current_refresh_rate_index)).ascii())));
command.append(TQString(" --gamma %1:%2:%3").arg(screendata->gamma_red).arg(screendata->gamma_green).arg(screendata->gamma_blue));
if (screendata->current_rotation_index == 0) command.append(" --rotate ").append("normal");
if (screendata->current_rotation_index == 1) command.append(" --rotate ").append("left");