Wayland: Implement glfwFocusWindow

This implements window focus requests via the xdg-activation-v1
protocol.  These requests will likely only work when another window of
the same application already has input focus, but that isn't unlike the
behavior of other platforms.

The GLFW_FEATURE_UNAVAILABLE error has been removed from this function
for now.

Related to #2284
Related to #2306
Related to #2439
This commit is contained in:
Camilla Löwy
2024-02-09 03:55:14 +01:00
parent eeb403135d
commit a360198f8f
4 changed files with 37 additions and 9 deletions

View File

@@ -142,9 +142,8 @@ protocols either, no decorations will be drawn around windows.
GLFW uses the [xdg-activation
protocol](https://wayland.app/protocols/xdg-activation-v1)
to enable attention requests. This protocol is part of
wayland-protocols staging, and mandatory at build time. If the running compositor
does not support this protocol, the attention requests do nothing.
to implement window focus and attention requests. If the running compositor
does not support this protocol, window focus and attention requests do nothing.
@section compat_glx GLX extensions