Skip to content

Commit

Permalink
Fix the GUI window sending the wrong message to close the portal (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
groboclown committed Dec 2, 2016
1 parent 9f76ff8 commit 0fb6568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Petronia Change History

## :: v2.3 ::
## :: v2.2.1 ::

### Overview

Expand All @@ -9,7 +9,8 @@
### Details

* Bug fixes.
* Well, actually, none yet.
* Portal chrome now correctly closes the chrome bits on
a layout change.


## :: v2.2 ::
Expand Down
4 changes: 3 additions & 1 deletion src/petronia/shell/native/gui_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
window__get_font_for_description,
window__move_resize,
window__send_message,
window__post_message,
window__repaint,
window__do_paint,
window__do_draw,
Expand Down Expand Up @@ -125,7 +126,8 @@ def close(self):
self.__removing = True
if not self.__has_quit:
self._log_verbose("Sending quit message to window {0} / {1}".format(self.cid, self.__hwnd))
window__send_message(self.__hwnd, windows_constants.WM_QUIT, 0, 0)
# window__send_message(self.__hwnd, windows_constants.WM_QUIT, 0, 0)
window__post_message(self.__hwnd, windows_constants.WM_CLOSE, 0, 0)
finally:
super().close()

Expand Down

0 comments on commit 0fb6568

Please sign in to comment.