Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New windows should always show up in front #18

Closed
jleclanche opened this issue Feb 9, 2014 · 7 comments
Closed

New windows should always show up in front #18

jleclanche opened this issue Feb 9, 2014 · 7 comments

Comments

@jleclanche
Copy link
Member

When pcmanfm is already open (eg in desktop mode) and the user types pcmanfm in the shell, the new window shows up behind everything else.

@jleclanche
Copy link
Member Author

I'm still getting this issue in master. Launching pcmanfm-qt from the command line, the windows show up behind my terminal if the desktop is running.

@jleclanche jleclanche reopened this Mar 9, 2014
@PCMan PCMan self-assigned this Mar 9, 2014
@PCMan
Copy link
Member

PCMan commented Mar 9, 2014

That's normal from the point of view of a window manager. Openbox has a feature which avoids stealing your keyboard focus while you're typing. After you type the command, the WM detects that you just issued a keyboard event and think that you're typing. So it does not disturb you by poping up another window. This can be fixed with NETWM "source indication" and cheat the WM to let it think that the raising window request is from a pager or the taskbar, but that's not necessarily the correct behaviour.

@jleclanche
Copy link
Member Author

Doing sleep 1 && pcmanfm does not alter that behaviour, so I don't think it has to do with keyboard events.

@PCMan
Copy link
Member

PCMan commented Mar 10, 2014

Doing sleep 1 && pcmanfm-qt solves the problem here for me.
Maybe you can try to wait for longer. Please try sleep 5 && pcmanfm-qt.
The only way to avoid this is to set NETWM source indication (not supported by Qt and needs to be done with Xlib), but that should only be used by taskbars to switch between windows and we should not abuse that NETWM feature.

@jleclanche
Copy link
Member Author

It fixes the issue on openbox, but not kwin.

Is this a WM issue?

J. Leclanche

On Mon, Mar 10, 2014 at 2:32 AM, PCMan notifications@github.com wrote:

Doing sleep 1 && pcmanfm-qt solves the problem here for me.
Maybe you can try to wait for longer. Please try sleep 5 && pcmanfm-qt.
The only way to avoid this is to set NETWM source indication (not
supported by Qt and needs to be done with Xlib), but that should only be
used by taskbars to switch between windows and we should not abuse that
NETWM feature.


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-37148958
.

@PCMan
Copy link
Member

PCMan commented Mar 10, 2014

http://docs.kde.org/development/en/kde-workspace/kcontrol/windowbehaviour/index.html
Yes, that behaviour is by design. See the "Focus stealing prevention" section.
So, it's a WM behaviour rather than a bug. Nothing needs to be fix here.
I'd like to close this bug if you agree. Thanks!

@jleclanche
Copy link
Member Author

Ok, lets close it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants