From d53730775616da452dc9467b341ad72ac430eb21 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 4 Sep 2014 15:58:31 +0000 Subject: don't switch to fullscreen if height is exceeded --- spectrogram.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spectrogram.c b/spectrogram.c index c3576db..f99d507 100644 --- a/spectrogram.c +++ b/spectrogram.c @@ -456,13 +456,13 @@ main(int argc, char **argv) XGetWindowAttributes(dsp, DefaultRootWindow(dsp), &wa); width = round + HGAP; - height = factor * width; - if (fflag || width > wa.width || height > wa.height) { + if (fflag || width > wa.width) { round = wa.width - HGAP; width = wa.width; - height = wa.height; - fflag = 1; } + height = factor * width; + if (height > wa.height) + height = wa.height; sio = init_sio(); -- cgit v1.2.3