Page 1 of 1

Move window away from mouse

Posted: 06 Aug 2008 11:39
by sweke
I've done a quick search but haven't found mention of a feature like this so here goes...

I often watch videos on VLC in a small window (with 'always on top') while doing other work, however the VLC window invariably gets in the way of the 'work' application. It might be useful to have a feature that makes the VLC window snap to a different corner whenever the mouse moves over it, i.e. the window 'runs away' from the mouse, allowing the user to see the 'work' application underneath.

Some issues:
1) Obviously some sort of hot key mechanism would be needed to get out of this mode
2) Is this a feature that will need to be developed for each particular windowing system (Windows, gnome etc)?

I have some skills in Python, Java and C# so even some pointers on how to go about writing it myself would be great.

Re: Move window away from mouse

Posted: 06 Aug 2008 23:25
by VLC_help
2. Even if VLC would abstract all that windowing code to one usable class, I am fairly sure that you would have to tweak at least one GUI to make it work properly because there are all kinds of strange behaviors with different GUIs (I am 99% sure that multimonitor or virtual desktop setups would cause issues).

Re: Move window away from mouse

Posted: 08 Aug 2008 00:24
by CloudStalker
It sounds like a good idea though.

Re: Move window away from mouse

Posted: 08 Aug 2008 07:16
by hfswjyr
Yes, I could imagine it being handy as well.

Sounds difficult to do though.

Re: Move window away from mouse

Posted: 11 Aug 2008 11:07
by breakneckridge
If you're on Mac OS X, one thing you can do right now is command-drag the video window. Command-dragging lets you move a window in a background program without bringing that program to the front. So you still have to manually move the VLC video window, but it saves you a couple of keystrokes in that you don't have to switch front applications to do it.