Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JeffHanna opened this issue Oct 11, 2019 · 3 comments
Open
Labels
bug Something isn't working

Comments

@JeffHanna
Copy link
Collaborator

JeffHanna commented Oct 11, 2019

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

bob-white pushed a commit that referenced this issue Jul 9, 2020
@hannesdelbeke
Copy link
Collaborator

hannesdelbeke commented Dec 28, 2022

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
Copy link
Collaborator

hannesdelbeke commented Jun 4, 2023

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 hannesdelbeke added the bug Something isn't working label Jun 4, 2023
@hannesdelbeke hannesdelbeke changed the title Blender's Windows\Toggle Full Screen menu command doesn't trigger the QWidget to go to full screen. Blender's menu Windows\Toggle Full Screen doesn't trigger full screen. Jun 4, 2023
@hannesdelbeke hannesdelbeke changed the title Blender's menu Windows\Toggle Full Screen doesn't trigger full screen. Blender's Toggle Full Screen operator doesn't trigger full screen. Jun 4, 2023
@hannesdelbeke
Copy link
Collaborator

workaround: disable qt wrapping with BQT_DISABLE_WRAP set to 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants