[vlc-devel] VLC/Mac OS X playlist resize issue (and proposed fix) - resend

Lincoln Ramsay ramsayl at bigfoot.com
Wed Jul 18 14:46:20 CEST 2007

Hi folks,

Apologies for sending this again but I couldn't tell if the last time  
got through the moderation process (I wasn't subscribed before). The  
mailing list archives did not show the message so I figured I'd send  
it again.

I'm a big fan of VLC but there's one thing about it that drives me  
nuts. On Mac OS X, when you view the playlist it doesn't open in a  
separate window, instead resizing the main window. This works well  
when you keep the VLC window towards the top/left corner but if (like  
me) you prefer to keep the main window in the bottom/right corner it  
makes the playlist rather hard to use.

I've created a patch against 0.8.6c that I think acts reasonably.  
After the window resizes, it gets pushed into the "visible" part of  
the screen. If you hide the playlist the window returns to the  
position it had previously been in. However if you move the window  
the "previous position" is ignored and the window is not moved when  
the playlist is hidden.

This lets me toggle the playlist on and off again without losing the  
main window's position. If you move the window when the playlist is  
visible... I think it's less confusing to just shrink the window at  
the current position than to move back to some other position.

I'm not very experienced with Mac OS X programming. The co-ordinate  
model threw me off. It seems that position 0,0 is the top/left corner  
of the screen and the x/y position of a window is actually the bottom/ 
left corner. I'm not sure what happens to the co-ordinates in a multi- 
monitor setup... the code might need to handle positive Y values and  
negative X values.

Thanks for reading.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize_patch.diff
Type: application/octet-stream
Size: 2789 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070718/9a0eecff/attachment.obj>
-------------- next part --------------

-------------- next part --------------
vlc-devel mailing list
vlc-devel at videolan.org

More information about the vlc-devel mailing list