Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 21986 ideas, 135057 comments, 2615221 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #15243: Prevent focus stealing until mouse button is released

Written by sayakb the 4 Nov 08 at 18:02. Category: Usability. Related project: Nothing/Others. Status: New
Rationale
A window should not steal away focus until the mouse button is released after clicking on it.

Advantages of such a behaviour:
Imagine a situation when you drag and drop your videos to say, VLC. You have a maximized nautilus window at back and a smaller vlc window on it's front. When you click on the video to drag it and drop it, nautilus immediately steals the focus from vlc and vlc hides behind the maximized nautilus window. So you have to drag the icon the whole way to the task bar, hover over the vlc entry for a second while vlc gains back focus and comes forward over the nautilus window, and then drop it on the player window.

Suppose if a window is designed *not* to steal focus on mere clicking but only after the mouse button is released, the above mentioned situation could be easily handled :-
- If a user wishes to drag, so he might not release the mouse at all when he clicks on the nautilus window. So the focus will remain on vlc and the user could easily drop it on the player.
- If the user actually wants to switch the focus to nautilus from vlc, he would prefer *clicking* on the nautilus window to bring it to the front, and hence would be releasing the mouse button while doing so. That would naturally, bring nautilus to front giving it focus.


*** Not marking this to be related to nautilus as the scenario is same for dolphin also.

80
votes
closed
Solution #1: Auto-generated solution of idea #15243
Written by sayakb the 4 Nov 08 at 18:02.
Ubuntu Brainstorm was updated in January 2009. Since the idea #15243 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

Propose your solution

Attachments
No attachments.


Duplicates


Comments
MaleqAlhaq wrote on the 5 Nov 08 at 10:10
I like the idea, but there should be a setting in a settings menu for this. Maybe inside the mouse config app.

Magnes wrote on the 5 Nov 08 at 10:17
Use Compiz to visualise it:
1. User clicks on a video icon in nautilus => the VLC window fades to 25% opacity
2. User drags the video icon => VLC windows is back to 50% opacity.
3a. User releases the mouse button leaving the icon in nautilus window => VLC window hides
3b. User releases the mouse button on the VLC => VLC windows opacity is set back to 100% and gets focus.

Of course every opacity change should be animated.

Linux-user wrote on the 6 Nov 08 at 22:47
- Right click on the VLC-button in window list;
- Select "Always on top" (I don't know the exact translation into English);
- Drag and drop as much as you want.

zerothis wrote on the 6 Nov 08 at 23:16
good for the mouse. How about the keyboard also? Suppose I'm typing away in chat, telling a noob not to do as 31337r341h4x0r1999 suggests and that it is actually bad to type sudo rm -rf *. I look up and see a console that stole focus just after I typed "type ". Ok, bad example, But I've programs doing all sorts annoying things because I was typing something meant for another app. A prevent focus stealing when typing option would be nice. Something like, [x]Do not change focus until [1500]ms of inactivity. Being able to associate a sound event with a focus change would be nice also.

sayakb (Brainstorm admin) wrote on the 27 Nov 08 at 08:20
I'm marking my own idea a dupe to #2567 :)


Post your comment