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

Showraise gtk gtk3 #6417

Merged
merged 3 commits into from May 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/matplotlib/backends/backend_gtk.py
Expand Up @@ -613,6 +613,9 @@ def destroy(self, *args):
def show(self):
# show the figure window
self.window.show()
# raise the window above others and relase the "above lock"
self.window.set_keep_above(True)
Copy link
Member

Choose a reason for hiding this comment

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

It's probably useful to document with a comment that this is intended so that no one "optimises" it away

self.window.set_keep_above(False)

def full_screen_toggle(self):
self._full_screen_flag = not self._full_screen_flag
Expand Down
1 change: 1 addition & 0 deletions lib/matplotlib/backends/backend_gtk3.py
Expand Up @@ -476,6 +476,7 @@ def destroy(self, *args):
def show(self):
# show the figure window
self.window.show()
self.window.present()

def full_screen_toggle (self):
self._full_screen_flag = not self._full_screen_flag
Expand Down