bqt
bqt copied to clipboard
Blender's Toggle Full Screen operator doesn't trigger full screen.
Blender's Windows\Toggle Full Screen menu command doesn't trigger the QWidget to go to full screen.
note: fullscreen only doesn't toggle correctly in the first window! when opening a second blender window from the first window, that window is able to toggle fullscreen.
so we cant just intercept the event, but have to ensure it comes from window[0]
clicking it in the menu uses the operator bpy.ops.wm.window_fullscreen_toggle
We could unregister this operator and register our own operator with same name, but we need to also handle non wrapped windows. (e.g. if you have 2 blender main windows open, 1 will be wrapped in qt, the other one wont be)
workaround: disable qt wrapping with BQT_DISABLE_WRAP
set to 1