mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Report ancient xdg-shell versions
This commit is contained in:
5
glfw/wl_init.c
vendored
5
glfw/wl_init.c
vendored
@@ -703,7 +703,7 @@ _glfwWaylandCompositorName(void) {
|
|||||||
|
|
||||||
static const char*
|
static const char*
|
||||||
get_compositor_missing_capabilities(void) {
|
get_compositor_missing_capabilities(void) {
|
||||||
#define C(title, x) if (!_glfw.wl.x) p += snprintf(buf, sizeof(buf) - (p - buf), "%s", #title);
|
#define C(title, x) if (!_glfw.wl.x) p += snprintf(buf, sizeof(buf) - (p - buf), "%s ", #title);
|
||||||
static char buf[256];
|
static char buf[256];
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
*p = 0;
|
*p = 0;
|
||||||
@@ -712,7 +712,10 @@ get_compositor_missing_capabilities(void) {
|
|||||||
C(cursor_shape, wp_cursor_shape_manager_v1); C(layer_shell, zwlr_layer_shell_v1);
|
C(cursor_shape, wp_cursor_shape_manager_v1); C(layer_shell, zwlr_layer_shell_v1);
|
||||||
C(single_pixel_buffer, wp_single_pixel_buffer_manager_v1); C(preferred_scale, has_preferred_buffer_scale);
|
C(single_pixel_buffer, wp_single_pixel_buffer_manager_v1); C(preferred_scale, has_preferred_buffer_scale);
|
||||||
C(idle_inhibit, idle_inhibit_manager);
|
C(idle_inhibit, idle_inhibit_manager);
|
||||||
|
if (_glfw.wl.xdg_wm_base_version < 6) p += snprintf(buf, sizeof(buf) - (p - buf), "%s ", "window-state-suspended");
|
||||||
|
if (_glfw.wl.xdg_wm_base_version < 5) p += snprintf(buf, sizeof(buf) - (p - buf), "%s ", "window-capabilities");
|
||||||
#undef C
|
#undef C
|
||||||
|
while (p > buf && (p - 1)[0] == ' ') { p--; *p = 0; }
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3307,7 +3307,7 @@ The possible values are:
|
|||||||
Only send a notification when the window both is unfocused and not visible
|
Only send a notification when the window both is unfocused and not visible
|
||||||
to the user, for example, because it is in an inactive tab or its OS window
|
to the user, for example, because it is in an inactive tab or its OS window
|
||||||
is not currently visible (note that OS Window visibility is not implemented
|
is not currently visible (note that OS Window visibility is not implemented
|
||||||
by some Wayland compositors such as sway).
|
by some Wayland compositors such as sway and also not implemented in X11).
|
||||||
|
|
||||||
:code:`always`
|
:code:`always`
|
||||||
Always send a notification, regardless of window state.
|
Always send a notification, regardless of window state.
|
||||||
|
|||||||
Reference in New Issue
Block a user