[gnome-games] application-window: Propagate in on_window_state_event()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] application-window: Propagate in on_window_state_event()
- Date: Wed, 1 Apr 2020 17:35:51 +0000 (UTC)
commit a708929def73c480d4f0af50a5a2625e622f7536
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Apr 1 22:28:07 2020 +0500
application-window: Propagate in on_window_state_event()
There's no reason not to, and it will avoid breaking HdyWindow later.
src/ui/application-window.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 95f56d06..a10aeed8 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -183,7 +183,7 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
display_view.update_pause (false);
if (!(bool) (event.changed_mask & Gdk.WindowState.FOCUSED))
- return false;
+ return true;
var focused = (bool) (event.new_window_state & Gdk.WindowState.FOCUSED);
var playing = (current_view == display_view);
@@ -194,7 +194,7 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
if (!focused)
uninhibit (Gtk.ApplicationInhibitFlags.IDLE);
- return false;
+ return true;
}
public bool gamepad_button_press_event (Manette.Event event) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]