[gnome-2048/arnaudb/wip/gtk4: 24/57] Try a fix.




commit ade5f012f36bb0d00d3aaec66ea251430e328238
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 51b782c..6860848 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]