JUN
12
2009

KWin vs Firefox (or why there is the word manager in "Window manager")

I found out today that two of my colleagues in the office have the same problem with Firefox - when clicking on a link in a mail client, their open Firefox is brought to the current desktop from wherever it was before. Rather annoying I guess (especially for the normal mode of operation with Firefox, keep-it-running-all-the-time-on-its-virtual-desktop), and I bet they've lived with that for quite some time already.

And handling this can be so simple. One of them uses KDE, so it was just switching to Firefox, Alt+F3/Advanced/Special Window Settings, enabling Desktop there, setting it to Force and choosing the virtual desktop it's supposed to be pinned to. Problem solved (or rather worked around, of course). The other one uses GNOME and I have no idea how to help him - Metacity itself does not have any such "advanced" functionality and Devil's Pie probably can't force settings. Bad luck. Maybe one really really long bugreport in GNOME bugzilla has a trick somewhere (the "fixed" resolution is unlikely to be it though, since it breaks other things).

The lessons learned could be: 1) It can be useful to have ways to handle exceptions. 2) KWin can do quite a lot, just check out the window-specific settings, and it can do it because as a window manager it should have the ultimate say about what happens. 3) If you refuse to aknowledge that the window manager is a manager and try to outsmart it or roll your own in your application, it may hurt when you shoot the foot.

Comments

Window specific settings are a very nice feature.

Amongst other things, I've changed KRunner to: skip taskbar, keep on top, all desktops (which I think should probably be the default behaviour).


By maninalift at Fri, 06/12/2009 - 13:28

excellent idea! i agree: that should be the default behaviour.


By ehamberg at Fri, 06/12/2009 - 20:47

Me too. I just set these settings, wondering why I didn't think of it before - I've gotten annoyed many times when the run command dialog disappeared behind another window or wasn't on another desktop. Or cluttering up the taskbar... Darn, these options really make sense!


By superstoned at Fri, 06/12/2009 - 20:57

Sounds like it's Firefox that deserves a bugreport in this case. OpenOffice is another annoying culprit. Maybe it's an imported Windows-ism, where it's normal for applications to do their own window, management ? I'll add this story to my rant whenever somebody asks me why I prefer Konqueror over Firefox.


By moltonel at Fri, 06/12/2009 - 14:36

Also when asking you what application you wish to use to open a given file-type, it presents the user with a file-browser dialogue. Surely it can scan .desktop files in "usr/share/applications" (and maybe even notice the defaults file). Browsing for the binary, or better just entering the command could be used as a fallback.

Firefox hates integration, firefox does it for itself.


By maninalift at Fri, 06/12/2009 - 15:06

https://bugzilla.mozilla.org/show_bug.cgi?id=431168

I'm voting for it :)


By Thomas Zander at Sun, 06/14/2009 - 17:09