diff options
author | Roman Savochenko <rom_as@oscada.org> | 2015-12-12 14:45:32 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-12 14:46:03 +0100 |
commit | 73b7917982615b24245946608bcc3f568937ac9c (patch) | |
tree | f572b8fb9cc25fcd6a74eee218ae17c4cfe6e496 | |
parent | e94aa50c090293295119ae757a37e93499c7ef9a (diff) | |
download | tdelibs-73b7917982615b24245946608bcc3f568937ac9c.tar.gz tdelibs-73b7917982615b24245946608bcc3f568937ac9c.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)
-rw-r--r-- | tderandr/libtderandr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tderandr/libtderandr.cc b/tderandr/libtderandr.cc index 12382f1e5..c61a6efd5 100644 --- a/tderandr/libtderandr.cc +++ b/tderandr/libtderandr.cc @@ -665,7 +665,7 @@ bool KRandrSimpleAPI::applyDisplayConfiguration(TQPtrList<SingleScreenData> scre 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"); |