omns, oops, I misread your announcement in the 1st post, that you were involved in tint2 in some way. Thanks for the link.
thil77, thanks that's very useful. should be easy to extend this to do the same as an option when you rightclick a taskbar background, or even in the panel background, if you have big padding around your taskbars.
Yup, here we go, tint2.c, line 143, looks like it might be hackable:
if (wm_menu) {
if ((panel_horizontal && (e->xbutton.x < panel->area.paddingxlr || e->xbutton.x > panel->area.width-panel->area.paddingxlr || e->xbutton.y < panel->area.paddingy || e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) || (!panel_horizontal && (e->xbutton.y < panel->area.paddingxlr || e->xbutton.y > panel->area.height-panel->area.paddingxlr || e->xbutton.x < panel->area.paddingy || e->xbutton.x > panel->area.paddingy+panel->g_taskbar.width))) {
// forward the click to the desktop window (thanks conky)
Maybe have wm_menu 1=padding only, 2=padding and panel only, 3=anything except a task - or something along those lines.
Plus, the bit that has the options for clicking on a task just reads mouse button numberes. titl-wheel left/right to move a task to previous/next desktop anyone?
Last edited by jackbang (2009-07-14 23:20:17)