FYI:
Ive changed my windowlist.c to separate my apps by class (assuming theu were
already sorted by class).  Feel free to apply somehow to official code if
you wish.

eg:

app1 title 1
app1 title 2
------------
app2 whatever
app3 whatever
app4 whatever
------------
app5 title 3
app5 title 4
app5 title 5
------------
app6 title 6
app6 title 7


code:  not pretty but good enough for my porpoises.

// my new code - this goes before the AddToMenu that adds app to menu
int  classcnt = 0;
if (!ii || strcmp(windowList[ii-1]->class.res_class, t->class.res_class)) {  // 
different app
  if (classcnt || !strcmp(windowList[ii+1]->class.res_class, 
t->class.res_class))
    AddToMenu(mr, NULL, NULL, False, False, False);
  classcnt = 0;
} else classcnt++;

// this is the AddToMenu that adds app to menu
AddToMenu(
        mr, t_hot, tfunc, False, False, False);
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to