summaryrefslogtreecommitdiffstats
path: root/servers/display_server_headless.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-06-15 10:53:31 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-06-16 10:27:52 +0300
commit28db3c715862cd25e92a4063d95ef115255cf604 (patch)
treebb1ed3f826cf2c5b7b00f4a381b683f13d4bd735 /servers/display_server_headless.h
parent9c41c4ecb6d122792fae2060e2a411ecf6812add (diff)
downloadredot-engine-28db3c715862cd25e92a4063d95ef115255cf604.tar.gz
[DisplayServer] Add method to check if native window is focused.
Diffstat (limited to 'servers/display_server_headless.h')
-rw-r--r--servers/display_server_headless.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/display_server_headless.h b/servers/display_server_headless.h
index 0c43b84f2e..af13f8db21 100644
--- a/servers/display_server_headless.h
+++ b/servers/display_server_headless.h
@@ -119,6 +119,7 @@ public:
void window_request_attention(WindowID p_window = MAIN_WINDOW_ID) override {}
void window_move_to_foreground(WindowID p_window = MAIN_WINDOW_ID) override {}
+ bool window_is_focused(WindowID p_window = MAIN_WINDOW_ID) const override { return true; };
bool window_can_draw(WindowID p_window = MAIN_WINDOW_ID) const override { return false; }