Browse Source

Merge pull request #104889 from MJacred/patch-1

Clarify that `Window.dpi_changed` signal is supported on Linux (Wayland)
Thaddeus Crews 5 months ago
parent
commit
b9b3c3fe14
2 changed files with 2 additions and 2 deletions
  1. 1 1
      doc/classes/DisplayServer.xml
  2. 1 1
      doc/classes/Window.xml

+ 1 - 1
doc/classes/DisplayServer.xml

@@ -2205,7 +2205,7 @@
 		</constant>
 		</constant>
 		<constant name="WINDOW_EVENT_DPI_CHANGE" value="6" enum="WindowEvent">
 		<constant name="WINDOW_EVENT_DPI_CHANGE" value="6" enum="WindowEvent">
 			Sent when the window is moved to the display with different DPI, or display DPI is changed.
 			Sent when the window is moved to the display with different DPI, or display DPI is changed.
-			[b]Note:[/b] This flag is implemented only on macOS.
+			[b]Note:[/b] This flag is implemented only on macOS and Linux (Wayland).
 		</constant>
 		</constant>
 		<constant name="WINDOW_EVENT_TITLEBAR_CHANGE" value="7" enum="WindowEvent">
 		<constant name="WINDOW_EVENT_TITLEBAR_CHANGE" value="7" enum="WindowEvent">
 			Sent when the window title bar decoration is changed (e.g. [constant WINDOW_FLAG_EXTEND_TO_TITLE] is set or window entered/exited full screen mode).
 			Sent when the window title bar decoration is changed (e.g. [constant WINDOW_FLAG_EXTEND_TO_TITLE] is set or window entered/exited full screen mode).

+ 1 - 1
doc/classes/Window.xml

@@ -734,7 +734,7 @@
 		<signal name="dpi_changed">
 		<signal name="dpi_changed">
 			<description>
 			<description>
 				Emitted when the [Window]'s DPI changes as a result of OS-level changes (e.g. moving the window from a Retina display to a lower resolution one).
 				Emitted when the [Window]'s DPI changes as a result of OS-level changes (e.g. moving the window from a Retina display to a lower resolution one).
-				[b]Note:[/b] Only implemented on macOS.
+				[b]Note:[/b] Only implemented on macOS and Linux (Wayland).
 			</description>
 			</description>
 		</signal>
 		</signal>
 		<signal name="files_dropped">
 		<signal name="files_dropped">