aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/spectrogram.c b/spectrogram.c
index e404db9..83bb3b1 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -16,6 +16,7 @@
*/
#include <X11/Xlib.h>
+#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <sys/types.h>
@@ -292,6 +293,8 @@ main(int argc, char **argv)
Display *dsp;
Window win;
Atom delwin;
+ Atom shints;
+ XSizeHints *hints;
int scr;
struct panel *left, *right;
@@ -346,6 +349,14 @@ main(int argc, char **argv)
delwin = XInternAtom(dsp, "WM_DELETE_WINDOW", 0);
XSetWMProtocols(dsp, win, &delwin, 1);
+ shints = XInternAtom(dsp, "WM_NORMAL_HINTS", 0);
+ hints = XAllocSizeHints();
+ hints->flags = PMinSize;
+ hints->min_width = width;
+ hints->min_height = height;
+ XSetWMSizeHints(dsp, win, hints, shints);
+ XFree(hints);
+
left = init_panel(dsp, win, delta / 2, height, 1);
right = init_panel(dsp, win, delta / 2, height, 0);
fft = init_fft(delta);