1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Fixing some stuff

This commit is contained in:
QC 2013-02-16 18:31:26 +01:00
parent 8138c9bf07
commit fcc2df9242

View file

@ -690,10 +690,13 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time)
int *line_map = allocate_clear(sizeof(int) * max_lines);
int filtered_lines = max_lines;
int jin = 0;
for (i = 0; i < max_lines; i++)
{
filtered[i] = lines[i];
line_map[i] = i;
if(config_i3_mode && strstr(lines[i], "i3bar") != NULL) continue;
filtered[jin] = lines[i];
line_map[jin] = i;
jin++;
}
// resize window vertically to suit
@ -920,7 +923,6 @@ void run_switcher(int mode, int fmode)
{
if ((c = window_client(w)))
{
if(config_i3_mode && strncasecmp(c->title, "i3bar", 5) == 0) continue;
// final line format
unsigned long wmdesktop; char desktop[5]; desktop[0] = 0;
char *line = allocate(strlen(c->title) + strlen(c->class) + classfield + 50);