Send plymouth mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freedesktop.org/mailman/listinfo/plymouth
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of plymouth digest..."
Today's Topics:
1. Script window position update (Charlie Brej)
----------------------------------------------------------------------
Message: 1
Date: Tue, 23 Mar 2010 00:09:18 +0000
From: Charlie Brej <[email protected]>
Subject: Script window position update
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I changed the way that the window get functions behave when no window
index has been passed. Now it gives the position and size of a fully
overlapped area (one which is visible on all screens). Sorry about the
breakage, but I couldn't find any way round this one.
What it means is that you can no longer assume that the window starts at
0,0. If you have a script which wants to place something in the centre
of a window, you should now add the window X and Y offsets. Doing this
in previous releases does no harm.
There are some examples of this in this commit:
http://cgit.freedesktop.org/plymouth/commit/?id=d28ff94b690d9dd231def8723a63910f52bd4ebb
This change only effects multiple monitor setups and is there to allow
the theme designer to be sure that a piece of text or an image will be
visible no matter which screen the user looks at.
Centre of the window = Widnow.GetX () + Widnow.GetWidth () / 2;
Minimum window width = Widnow.GetWidth ();
Maximum window width = Widnow.GetX () * 2 + Widnow.GetWidth ();
Minimum window X = Widnow.GetX ();
Maximum window X = 0;
Similar for Y and Height.
------------------------------
_______________________________________________
plymouth mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/plymouth
End of plymouth Digest, Vol 17, Issue 17
****************************************