[gnome-2048/arnaudb/wip/gtk4: 18/48] Try a fix.




commit f838383c4612ff05b6acc65b2c76943caaeec410
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 0ffb8c1..0cf4b74 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]