summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbuetow (lap824) <puppet@mx.buetow.org>2012-01-28 19:24:10 +0100
committerpbuetow (lap824) <puppet@mx.buetow.org>2012-01-28 19:24:10 +0100
commit6ca72bc6710320669e467d07c18c04d4bfd5508f (patch)
tree2c1883700342f96124ae76507f514f79f518290c
parentce4acdea0bc665f45a00bb33b5d7f6d23544a41c (diff)
Remove anoying resize info messages
-rwxr-xr-xloadbars26
1 files changed, 5 insertions, 21 deletions
diff --git a/loadbars b/loadbars
index e40adfa..26bf45b 100755
--- a/loadbars
+++ b/loadbars
@@ -276,37 +276,21 @@ sub set_dimensions ($$) {
my $display_info = 0;
if ($width < 1) {
- if ($C{width} != 1) {
- $C{width} = 1;
- $display_info = 1;
- }
+ $C{width} = 1 if $C{width} != 1;
} elsif ($width > $C{maxwidth}) {
- if ($C{width} != $C{maxwidth}) {
- $C{width} = $C{maxwidth};
- $display_info = 1;
- }
+ $C{width} = $C{maxwidth} if $C{width} != $C{maxwidth};
} elsif ($C{width} != $width) {
$C{width} = $width;
- $display_info = 1;
}
if ($height < 1) {
- if ($C{height} != 1) {
- $C{height} = 1;
- $display_info = 1;
- }
+ $C{height} = 1 if $C{height} != 1;
- } else {
- if ($C{height} != $height) {
- $C{height} = $height;
- $display_info = 1;
- }
+ } elsif ($C{height} != $height) {
+ $C{height} = $height;
}
-
- display_info "Resizing window to $C{width}x$C{height}"
- if $display_info;
}
sub main_loop ($@) {