mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 23:54:20 +02:00
DRYer
This commit is contained in:
6
glfw/wl_init.c
vendored
6
glfw/wl_init.c
vendored
@@ -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
1
glfw/wl_platform.h
vendored
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user