Bläddra i källkod

docs: Update Wayland documentation

Note that windows may not report the minimized state, and update the cursor warp documentation to note the newly supported protocol.
Frank Praznik 10 månader sedan
förälder
incheckning
6e5994db76
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      docs/README-wayland.md

+ 9 - 2
docs/README-wayland.md

@@ -47,8 +47,15 @@ encounter limitations or behavior that is different from other windowing systems
 
 ### Warping the mouse cursor to or from a point outside the window doesn't work
 
-- The cursor can be warped only within the window with mouse focus, provided that the `zwp_pointer_confinement_v1`
-  protocol is supported by the compositor.
+- Warping the cursor on Wayland requires that either the `wp_pointer_warp_v1` or `zwp_pointer_confinement_v1` protocol
+  is supported by the compositor. Compositors typically restrict pointer warps to be within the window that currently
+  has mouse focus.
+
+### Minimize/Restored window events are not sent, and the ```SDL_WINDOW_MINIMIZED``` flag is not set.
+
+- Wayland windows do not currently report the minimized state, aside from when it is activated programmatically via
+  ```SDL_MinimizeWindow()```. Minimizing a window from the window controls or a desktop shortcut will not send a
+  minimized event or flag the window as being minimized.
 
 ### The application icon can't be set via ```SDL_SetWindowIcon()```