This commit is contained in:
Kovid Goyal
2024-03-21 11:27:41 +05:30
parent 924b87a16a
commit 3c4db20d2d
2 changed files with 3 additions and 4 deletions

6
glfw/wl_init.c vendored
View File

@@ -31,10 +31,10 @@
#include "backend_utils.h"
#include "linux_desktop_settings.h"
#include "../kitty/monotonic.h"
#include "wl_text_input.h"
#include "wayland-text-input-unstable-v3-client-protocol.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -629,7 +629,7 @@ static void registryHandleGlobal(void* data UNUSED,
const char* interface,
uint32_t version)
{
#define is(x) strcmp(interface, #x) == 0
#define is(x) strcmp(interface, x##_interface.name) == 0
if (is(wl_compositor))
{
_glfw.wl.compositorVersion = min(3, version);

1
glfw/wl_platform.h vendored
View File

@@ -58,7 +58,6 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR
#include "wayland-pointer-constraints-unstable-v1-client-protocol.h"
#include "wayland-primary-selection-unstable-v1-client-protocol.h"
#include "wayland-primary-selection-unstable-v1-client-protocol.h"
#include "wl_text_input.h"
#include "wayland-xdg-activation-v1-client-protocol.h"
#include "wayland-cursor-shape-v1-client-protocol.h"