I ran some more tests, it seems like _event_size() and 
_recreate()/_create() were conflicting when setting window/fullscreen by 
calling _update_view_location() twice, once in _create() and again in 
_event_size(). Rather than removing the call to _update_view_location() in 
_event_size(), I indented it to fall under the fullscreen check:

    @Win32EventHandler(WM_SIZE)
    def _event_size(self, msg, wParam, lParam):
        if not self._dc:
            # Ignore window creation size event (appears for fullscreen
            # only) -- we haven't got DC or HWND yet.
            return None

        if wParam == SIZE_MINIMIZED:
            # Minimized, not resized.
            self._hidden = True
            self.dispatch_event('on_hide')
            return 0
        if self._hidden:
            # Restored
            self._hidden = False
            self.dispatch_event('on_show')
        w, h = self._get_location(lParam)

        if not self._fullscreen:
            self._width, self._height = w, h
*            self._update_view_location(self._width, self._height)*

        self._reset_exclusive_mouse_screen()
        self.switch_to()
        self.dispatch_event('on_resize', self._width, self._height)
        return 0


-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to