[squeak-dev] The Inbox: Graphics-dtl.335.mcz

David T. Lewis lewis at mail.msen.com
Thu May 12 03:44:09 UTC 2016


Could you please check if this works on Windows and/or Mac, and if so consider
moving to trunk?

In particular, check if this works on Windows:

    Display width @ Display height = DisplayScreen hostWindowExtent ==> true

I have the HostWindowPlugin primitives working on a unix VM but will need to
clean it up and post the patches.

I think that we had an earlier question as to whether the host window
decorations (title bar etc) should be included in window size calculations.
Based on the above test I would say that the answer should be no, neither
the VM nor the image should be aware of the size of any window decorations
that are added by a window manager. I expect that this policy should make
sense on Windows, OS X, and Risc OS, although I do not know for sure because
I am only looking at the X11 case.


On Thu, May 12, 2016 at 03:25:16AM +0000, commits at source.squeak.org wrote:
> David T. Lewis uploaded a new version of Graphics to project The Inbox:
> http://source.squeak.org/inbox/Graphics-dtl.335.mcz
> ==================== Summary ====================
> Name: Graphics-dtl.335
> Author: dtl
> Time: 11 May 2016, 11:25:12.450775 pm
> UUID: df71df68-b235-49be-b4a5-bebb84cb420a
> Ancestors: Graphics-mt.334
> DisplayScreen class>>hostWindowExtent: uses the host window plugin to set the size of the main Squeak display window. Add the complementary #hostWindowExtent to query the plugin for display size. Requires VM support for HostWindowPlugin.
> Assuming required support from VM HostWindowPlugin:
> 	Display width @ Display height = DisplayScreen hostWindowExtent ==> true
> Recategorize methods for plugin access, and add a method comment to explain the convention of treating host window index 1 as a reference to the Squeak display window.

More information about the Squeak-dev mailing list