[gnome-2048/arnaudb/wip/gtk4: 16/36] Try a fix.



commit 21a95f0b7efb595f194aa1525f1229a810d2a894
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Apr 28 08:48:19 2020 +0200

    Try a fix.

 src/game-window.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index 4cd2f82..621fbe7 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -312,7 +312,7 @@ private class GameWindow : ApplicationWindow
     private static inline bool on_key_pressed (EventControllerKey _key_controller, uint keyval, uint 
keycode, Gdk.ModifierType state)
     {
         GameWindow _this = (GameWindow) _key_controller.get_widget ();
-        if (_this._header_bar.has_popover () || (_this.focus_visible && !_this._board.is_focus))
+        if (_this._header_bar.has_popover () || (_this.focus_visible && !_this._board.is_focus ()))
             return false;
         if (_this._game.cannot_move ())
             return false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]