-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Running apps via pkexec results in pkexec window not receiving the focus #117
Comments
I am missing the reason why it should not have focus? What is the logic for it not to have focus? |
Here is how it works for me on gentoo. Scenario one:
Scenario two:
And to be clear, the dialogue you need to enter your password in is from polkit-mate-authentication-agent-1. Can you also check this is the one that is running on your system? edit: Also try to run another program that is not in sbin to see if that makes a difference. |
It should have focus immediately after launching it. It does so in Cinnamon and Xfce, it doesn't in MATE, and that's the problem. In particular, the starter of this thread is explaining why it's important for pkexec window to receive focus:
|
Yes, this dialog is from polkit-mate-authentication-agent-1. |
Ah, in your problem description you say in the last step it should be un focused so you may want to edit it and clarify 😉. I mean I though the problem was the other way around based on it. |
Wait, but these are the steps to reproduce the bug, so the un focused is what you should get if you manage to reproduce it... |
I changed it and made it clearer what happens and what is expected. Yes they are the steps to reproduce but in the last step you indicate what you expect is an unfocused window which is contradicting the title 😄 |
Ok, maybe it's even better that way. :) |
Interesting, this still happens in Metacity 3.14.1 (though I had to use gnome-flashback session instead of MATE due to one nasty quirk in the latest Metacity). Disappointing, I was hoping to cherry-pick some commits to fix this issue in Marco :) |
ah, i want to know the cause of the issue,why they can not drag the focus |
Hehe, if we only knew the cause, we'd probably fix the problem right away... :) BTW, I found out it also happens when using Gnome's polkit agent instead of MATE's one. Though their code isn't really maintained these days... |
For what it's worth I am able to reproduce this in Ubuntu Mate 14.04 with the following simple steps: What I also noticed is that once you manually click the authentication Window to get focus, the next time you call pkexec, it will give you the focus so long as you don't select another application. To reproduce the issue again, you have to first activate another window and then run pkexec. This might explain why the issue is not reproducible 100%, but I am able to reproduce it every time with this trick. According to this: https://bugzilla.redhat.com/show_bug.cgi?id=614175, this is a Window Manager bug I found that the same issue occurs with compiz but not openbox or xfwm4 |
Ok guys, if you know how to patch & build packages, please check if mate-desktop/mate-polkit#22 fixes the problem for you. |
Steps to reproduce:
Note: in some cases (e.g. if you run the script with "&") it might require a second consequence of alt-tabbing away/back and the following button clicking in order to reproduce the issue consistently.
This issue can be reproduced in:
This issue can't be reproduced in Cinnamon or Xfce. Moreover, if you replace Marco with e.g. xfwm4, the issue can't be reproduced too. So I concluded this is a bug in Marco.
However, it can be reproduced if you replace Marco with Metacity, which might indicate this is a legacy bug.
The text was updated successfully, but these errors were encountered: