]> Pileus Git - lackey/blobdiff - src/screen.c
Fix divider click bug
[lackey] / src / screen.c
index c0aa8f4ffa753c07062b9d91e625666aa64e8b33..e10a54d8ec9b9b6b432bcce2a37b084a88a06f7f 100644 (file)
@@ -110,7 +110,7 @@ int screen_run(int key, mmask_t btn, int row, int col)
                int start = 1;
                for (int i = 0; i < N_ELEMENTS(views); i++) {
                        int end = start + strlen(views[i].name) - 1;
-                       if (start <= col && col <= end)
+                       if (start <= col && col <= end && views[i].draw)
                                return screen_set(i);
                        start = end + 2;
                }