Skip to content

Commit

Permalink
[#18] Protect the method handling changing window state even further.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Feb 14, 2021
1 parent 6ac9bdf commit 3377489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zx/_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def __init__(self, emulator):
self._window.connect('key-press-event', self.__on_gdk_key)
self._window.connect('key-release-event', self.__on_gdk_key)
self._window.connect('button-press-event', self._on_click)
self._window.connect('window-state-event', self._on_window_state_event)
self._window.connect('window-state-event', self.__on_window_state_event)

def _on_draw_area(self, widget, context):
window_size = self._window.get_size()
Expand Down Expand Up @@ -378,7 +378,7 @@ def _stop(self):
def _on_done(self, widget, context):
self._stop()

def _on_window_state_event(self, widget, event):
def __on_window_state_event(self, widget, event):
state = event.new_window_state
self._is_fullscreen = bool(state & Gdk.WindowState.FULLSCREEN)

Expand Down

0 comments on commit 3377489

Please sign in to comment.