aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 0d2e12f..9c3526d 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -532,15 +532,13 @@ FbTk::Command<void> *ResizeCmd::parse(const string &command, const string &args,
532 return 0; 532 return 0;
533 } 533 }
534 534
535 int dx, dy; 535 int dx = 0, dy = 0;
536 bool is_relative_x = false, is_relative_y = false, ignore_x = false, ignore_y = false; 536 bool is_relative_x = false, is_relative_y = false, ignore_x = false, ignore_y = false;
537 537
538 if (command == "resizehorizontal") { 538 if (command == "resizehorizontal") {
539 parseToken(tokens[0], dx, is_relative_x, ignore_x); 539 parseToken(tokens[0], dx, is_relative_x, ignore_x);
540 dy = 0;
541 } else if (command == "resizevertical") { 540 } else if (command == "resizevertical") {
542 parseToken(tokens[0], dy, is_relative_y, ignore_y); 541 parseToken(tokens[0], dy, is_relative_y, ignore_y);
543 dx = 0;
544 } else { 542 } else {
545 if (tokens.size() < 2) { 543 if (tokens.size() < 2) {
546 return 0; 544 return 0;