Merge pull request #78262 from bruvzg/ds_window_focus

[DisplayServer] Add method to check if native window is focused.
This commit is contained in:
Rémi Verschelde 2023-06-16 10:19:33 +02:00
commit 014b395ef3
No known key found for this signature in database
GPG key ID: C3336907360768E1
18 changed files with 71 additions and 4 deletions

View file

@ -1258,6 +1258,13 @@
Returns the V-Sync mode of the given window.
</description>
</method>
<method name="window_is_focused" qualifiers="const">
<return type="bool" />
<param index="0" name="window_id" type="int" default="0" />
<description>
Returns [code]true[/code] if the window specified by [param window_id] is focused.
</description>
</method>
<method name="window_is_maximize_allowed" qualifiers="const">
<return type="bool" />
<param index="0" name="window_id" type="int" default="0" />