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

PR: Implement a workaround to toggle on/off fullscreen mode for Windows systems #7720

Merged
merged 4 commits into from
Aug 21, 2018

Conversation

jnsebgosselin
Copy link
Member

Description of Changes

Due to limitations of the Windows DWM, compositing is not handled correctly for OpenGL based windows when going into full screen mode.

To get around this issue, this PR propose to use the workaround described here:
https://bugreports.qt.io/browse/QTBUG-41309

Issue(s) Resolved

Fixes #4291

Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing this on my Win 8.1 machine, Spyder 3.3.1 indeed has the reported problem (menus not appearing in fullscreen mode), while this branch does not, regardless of whether or not the Help pane was open. Unfortunately, I can't test it on my Win10 box right now since Spyder 4 won't even launch at the moment (unrelated). Other than that, just one minor code style comment from me.

| Qt.WindowStaysOnTopHint)
r = QApplication.desktop().screenGeometry()
self.setGeometry(
r.left()-1, r.top()-1, r.width()+2, r.height()+2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two spaces between binary operators per PEP 8.

@CAM-Gerlach
Copy link
Member

@jnsebgosselin Also works on Windows 10 (1803)

Due to limitations of the Windows DWM, compositing is not handled
correctly for OpenGL based windows when going into full screen mode, so
we need to use this workaround.
@jnsebgosselin jnsebgosselin changed the base branch from master to 3.x August 20, 2018 22:55
@jnsebgosselin
Copy link
Member Author

I rebased this PR to the 3.x branch as specified by the milestone of Issue #4291

@CAM-Gerlach CAM-Gerlach added this to the v3.3.2 milestone Aug 20, 2018
@jnsebgosselin
Copy link
Member Author

Tests are failing on AppVeyor because I changed the base branch to 3.x in GitHub after pushing the rebased commits... So the tests simply need to be restarted I think.

@CAM-Gerlach
Copy link
Member

@jnsebgosselin I started the rebuild, although you should be able to as well if you link AppVeyor to your Github.

@jnsebgosselin
Copy link
Member Author

Thanks @CAM-Gerlach.

@ccordoba12 ccordoba12 merged commit dafbb55 into spyder-ide:3.x Aug 21, 2018
ccordoba12 added a commit that referenced this pull request Aug 21, 2018
@jnsebgosselin jnsebgosselin deleted the fix_fullscreen_bug branch August 23, 2018 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants