Erik de Castro Lopo wrote:
Erik de Castro Lopo wrote:
I still think this functionality can be improved on to do the right thing for most people most of the time.
Ah, its in the TODO list anyway:
o (per-workspace instances with socket support?)
Since I have already figured out the basic mechanics of how to do this using nothing more than GTK/GDK and X11 libs, I'll roll a patch and send it in.
I've been running the attached patch for two days now and its worked flawlessly on Debian Testing, Ubuntu Lucid and Ubuntu Hardy.
I've been careful to try and make sure the code compiles on windows and mac, but I haven't tested it. There is code in place for these systems so that if it can't determine the workspace number it just returns a default of 0. This means that windows/mac behaviour will be unchanged after this patch.
Cheers, Erik