mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
AppRunner calls web embedded windowProperties.setFullscreen(False) (fixes logout from fullscreen crash)
This commit is contained in:
parent
db637e7f83
commit
045459f848
@ -746,6 +746,7 @@ class AppRunner(DirectObject):
|
|||||||
wp.setSize(width, height)
|
wp.setSize(width, height)
|
||||||
if windowType == 'embedded':
|
if windowType == 'embedded':
|
||||||
wp.setParentWindow(parent)
|
wp.setParentWindow(parent)
|
||||||
|
wp.setFullscreen(False)
|
||||||
base.win.requestProperties(wp)
|
base.win.requestProperties(wp)
|
||||||
self.windowProperties = wp
|
self.windowProperties = wp
|
||||||
return
|
return
|
||||||
@ -763,11 +764,11 @@ class AppRunner(DirectObject):
|
|||||||
|
|
||||||
wp = WindowProperties.getDefault()
|
wp = WindowProperties.getDefault()
|
||||||
|
|
||||||
wp.clearFullscreen()
|
|
||||||
wp.clearParentWindow()
|
wp.clearParentWindow()
|
||||||
wp.clearOrigin()
|
wp.clearOrigin()
|
||||||
wp.clearSize()
|
wp.clearSize()
|
||||||
|
|
||||||
|
wp.setFullscreen(False)
|
||||||
if windowType == 'fullscreen':
|
if windowType == 'fullscreen':
|
||||||
wp.setFullscreen(True)
|
wp.setFullscreen(True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user