From 908d539abebbed2e833b554610790da880f487cb Mon Sep 17 00:00:00 2001 From: Roman Pytkov Date: Mon, 17 Nov 2025 01:38:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wayland/src/input.c | 11 +++++------ wayland/src/registry.c | 2 -- wayland/src/window.c | 4 +--- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/wayland/src/input.c b/wayland/src/input.c index d70f74c..2bb305f 100644 --- a/wayland/src/input.c +++ b/wayland/src/input.c @@ -7,12 +7,11 @@ #include #include - -static __thread struct wl_seat *seat = NULL; -static __thread struct wl_keyboard *keyboard = NULL; -static __thread struct xkb_context *xkb_ctx = NULL; -static __thread struct xkb_keymap *xkb_keymap = NULL; -static __thread struct xkb_state *xkb_state = NULL; +static struct wl_seat *seat = NULL; +static struct wl_keyboard *keyboard = NULL; +static struct xkb_context *xkb_ctx = NULL; +static struct xkb_keymap *xkb_keymap = NULL; +static struct xkb_state *xkb_state = NULL; static struct wl_surface *keyboard_focus = NULL; /* Обработчики клавиатуры */ diff --git a/wayland/src/registry.c b/wayland/src/registry.c index 16a2e72..d9f847d 100644 --- a/wayland/src/registry.c +++ b/wayland/src/registry.c @@ -1,5 +1,3 @@ -/* Copyright (c) 2025 */ - #include "registry.h" #include "input.h" #include diff --git a/wayland/src/window.c b/wayland/src/window.c index 9daa84c..53607b1 100644 --- a/wayland/src/window.c +++ b/wayland/src/window.c @@ -11,7 +11,7 @@ #include #include - +#include "registry.h" static atomic_uint_fast64_t shm_counter = 0; @@ -239,5 +239,3 @@ void window_destroy(struct wayland_window *win) if (win->data) munmap(win->data, win->width * win->height * 4); } -/* конец файла */ -#include "registry.h"