System: Xubuntu 12.04 32bits (Xfce 4.8 - xfwm) Xubuntu 12.10 32bits LiveCD (Xfce 4.10 - xfwm) Step to reproduce: 1. Create a launcher with "Use startup notification" checked. 2. Clic on it. What happened: The window opened is not focused What I expected to happen: This new window would be focused automatically ------ I have tried to change every settings in xfwm4-tweaks-settings without success, windows never take focus when "use startup notification" is checked.
Addendum: I'm talking about the launchers on the desktop, not on the panel. Launchers on the panel, with "Use startup notification" works great. Steps to reproduce (corrected): 1. Create a launcher on your desktop with "Use startup notification" checked. 2. Click on it.
If the bug is with a launcher on the desktop, the bug should probably be assigned to xfdesktop instead of xfwm4, since it might not set the correct properties on the app being launched (contrary to xfce4-panel launchers which works) ?
Seems to work fine here with xfdesktop 4.10.0. What are your focus settings ? Here's it's "click to focus" + "automatically focus new windows" checked + "prevent focus stealing" unchecked.
When using startup notification, the timestamp used do decide if focus should be set or not is from the startup notification mechanism. So most likely, what happens is that additional activity occurs with the desktop window after the timestamp is recorded for startup notification... So when the window manager compares last activity timestamp against the startup notification provided timestamp, it finds the latter to be older and therefore won't focus the window.
@Landry Breuil My settings are the same : "click to focus": ON "automatically focus new windows": ON "prevent focus stealing": OFF But I've tried pretty much every settings. ------ @Landry Breuil I've heard about a mechanism that don't focus the window if the application take too much time to open. In order to not distract the user if he was doing something else during that time. But my windows don't get focused even with light applications that open immediately (gcalctool...). Same results by pressing Enter to run the launcher, without touching my mouse. ------ I've just noticed I don't get the cursor animation too, that should play during the opening of a launcher with "Use startup notification" checked. The same launcher with "use startup application" checked: Launcher on panel: Focus works. Hourglass* FAILS Launcher on thunar: Focus works. Hourglass* FAILS Launcher on the desktop: Focus FAILS. Hourglass* FAILS *Hourglass: By that, I mean the cursor-idle-animation. xfdesktop : version 4.8.3-2ubuntu7 libstartup-notification0 : version 0.12-1ubuntu1
*** Bug 11347 has been marked as a duplicate of this bug. ***
Created attachment 5985 patch (thunar) I've attached an experimental patch which only alters the event timestamp in thunar_file_execute. This seems to fix the window focus bug without breaking anything, but is most likely not a proper fix.
Created attachment 6020 Fix startup id handling for launch requests over D-Bus This is a proper patch which fixes the missing startup id handling.
Pushed to master: http://git.xfce.org/xfce/thunar/commit/?id=03ed0b6fff9a740f2f8971770ba03d0d4f6af718