[rfc][icedtea-web] SecurityDialog centers itself after becoming visible
Andrew Azores
aazores at redhat.com
Thu Oct 10 11:50:29 PDT 2013
Hi,
It kind of bothered me that our SecurityDialog windows would appear
briefly in the top left corner of the screen before becoming centered.
Maybe it's less apparent with other window managers that have fancier
effects and animations, but it's incredibly obvious with OpenBox at least.
This was happening because the centerDialog() call was being made after
a windowOpened event was fired, which happens after the window becomes
visible. Moving the centerDialog call out of that handler and into the
initialization of the dialog itself, some time after pack() is called,
fixes this. This way the window position is already set to the middle of
the screen well before the window becomes visible, and the Dialog is
much less jarring when it does appear IMO.
Thanks,
--
Andrew A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: security-dialog-centering.patch
Type: text/x-patch
Size: 919 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20131010/57fdc400/security-dialog-centering.patch
More information about the distro-pkg-dev
mailing list