gksudo window loses focus if the password prompt is right-clicked

Bug #1019454 reported by Tate Richardson
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)

Bug Description

I just realized what was going on today, although I've seen it happen before -- but I don't remember if it was the same version of ubuntu (or the gksu package). When the gksudo window pops up, supposedly "grabbing" your keyboard, if a user were to RIGHT-CLICK on the prompt line for whatever reason, two things happen:

First, the right-click menu appears BELOW the gksudo window. Perhaps that was intended? Problem is, though, you only catch it if you either have a keen eye or know it's gonna do that. So there's that...

Second, perhaps BECAUSE of the menu appearing BEHIND the gksudo window, the window directly behind where you right-clicked is now in focus. But you can't know until you start typing, because the cursor in the gksudo window is still flashing, ready for input. By that time, you've already entered a few letters of your passwd, if not the whole thing. If you hadn't yet noticed a problem, or don't expect it to BE a problem (perhaps because the TERMINAL version of sudo DOESN'T show the ****'s for each key press), you've just sent your password to everyone in the chatroom you were in. (if you're that unlucky, and that window was the one that got focused).

What's worse, is that you CAN'T get focus BACK to the gksudo window without knowing what's going on. You can still click cancel, but left or middle-clicking on the actual prompt doesn't bring it back into focus (although the cursor flashes as if it IS in focus). The only way to bring it back into keyboard focus is to right-click again, THIS time the context menu appears ABOVE the gksudo window. Now it's focused. Moreover, further right-clicking doesn't go "through" the window like it did the first time... i.e. it works as intended.

I tried this with multiple window managers, all do the same thing. I'm using Ubuntu 12.04 64-bit, gksu version 2.0.2-6ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gksu 2.0.2-6ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 18:37:35 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: gksu
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tate Richardson (tatefootball80) wrote :
Revision history for this message
Thomas Ward (teward) wrote :

I can confirm the first part, about the context menu popping up behind the window. Clicking anywhere in the prompt and right clicking again will get the normal context menu back for that line (cut, copy, paste, etc.).

I can not confirm that the window will lose focus. I had maximized Firefox, three terminals, and a Flash application open right where the gksudo prompt shows up. That prompt did *not* lose focus.

Ubuntu 12.04, 64bit.

+ gksudo window loses focus if the password prompt is right-clicked
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers