Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
push by andreas....@gmail.com - Fix window not always showing on Windows (fix by Joe Esposito) on 2012-08-05 08:20 GMT
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pyg...@googlecode.com  
View profile  
 More options Aug 5 2012, 4:20 am
From: pyg...@googlecode.com
Date: Sun, 05 Aug 2012 08:20:51 +0000
Local: Sun, Aug 5 2012 4:20 am
Subject: [pyglet] push by andreas....@gmail.com - Fix window not always showing on Windows (fix by Joe Esposito) on 2012-08-05 08:20 GMT
Revision: 2789614be547
Author:   Andreas Schiefer <andreas.schie...@gmail.com>
Date:     Sun Aug  5 01:19:45 2012
Log:      Fix window not always showing on Windows (fix by Joe Esposito)
http://code.google.com/p/pyglet/source/detail?r=2789614be547

Modified:
  /pyglet/window/win32/__init__.py

=======================================
--- /pyglet/window/win32/__init__.py    Mon Jul 16 10:29:50 2012
+++ /pyglet/window/win32/__init__.py    Sun Aug  5 01:19:45 2012
@@ -350,11 +350,9 @@

      def set_visible(self, visible=True):
          if visible:
-            if self._fullscreen:
-                _user32.SetWindowPos(self._hwnd, HWND_TOPMOST, 0, 0, 0, 0,
-                    SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW)
-            else:
-                _user32.ShowWindow(self._hwnd, SW_SHOW)
+            insertAfter = HWND_TOPMOST if self._fullscreen else HWND_TOP
+            _user32.SetWindowPos(self._hwnd, insertAfter, 0, 0, 0, 0,
+                SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW)
              self.dispatch_event('on_show')
              self.activate()
          else:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »