techartorg / bqt

A Blender add-on to support & manage Qt Widgets in Blender (PySide2)
https://github.com/techartorg/bqt/wiki
Mozilla Public License 2.0
162 stars 23 forks source link

Blender's Toggle Full Screen operator doesn't trigger full screen. #3

Open JeffHanna opened 4 years ago

JeffHanna commented 4 years ago

Blender's Windows\Toggle Full Screen menu command doesn't trigger the QWidget to go to full screen.

hannesdelbeke commented 1 year ago

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]

hannesdelbeke commented 1 year ago

image

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)

hannesdelbeke commented 1 year ago

workaround: disable qt wrapping with BQT_DISABLE_WRAP set to 1