This commit is contained in:
Kovid Goyal 2024-04-04 19:11:21 +05:30
parent ecee7086a8
commit f51c2f08a5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
7 changed files with 4 additions and 4 deletions

1
glfw/ibus_glfw.c vendored
View file

@ -46,6 +46,7 @@
#include "internal.h"
#include "ibus_glfw.h"
#undef debug
#define debug(...) if (_glfw.hints.init.debugKeyboard) printf(__VA_ARGS__);
static const char IBUS_SERVICE[] = "org.freedesktop.IBus";
static const char IBUS_PATH[] = "/org/freedesktop/IBus";

View file

@ -13,7 +13,6 @@
#include <string.h>
#include <stdlib.h>
#define debug(...) if (_glfw.hints.init.debugRendering) fprintf(stderr, __VA_ARGS__);
#define decs window->wl.decorations
#define ARGB(a, r, g, b) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))

2
glfw/wl_init.c vendored
View file

@ -56,8 +56,6 @@
#endif
#define debug(...) if (_glfw.hints.init.debugRendering) { fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic())); fprintf(stderr, __VA_ARGS__); }
static int min(int n1, int n2)
{
return n1 < n2 ? n1 : n2;

1
glfw/wl_platform.h vendored
View file

@ -402,3 +402,4 @@ int _glfwWaylandIntegerWindowScale(_GLFWwindow*);
void animateCursorImage(id_type timer_id, void *data);
struct wl_cursor* _glfwLoadCursor(GLFWCursorShape, struct wl_cursor_theme*);
void destroy_data_offer(_GLFWWaylandDataOffer*);
#define debug(...) if (_glfw.hints.init.debugRendering) { fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic())); fprintf(stderr, __VA_ARGS__); }

View file

@ -10,6 +10,7 @@
#include "wayland-text-input-unstable-v3-client-protocol.h"
#include <stdlib.h>
#include <string.h>
#undef debug
#define debug(...) if (_glfw.hints.init.debugKeyboard) printf(__VA_ARGS__);
static struct zwp_text_input_v3* text_input;

1
glfw/wl_window.c vendored
View file

@ -41,7 +41,6 @@
#include <fcntl.h>
#include <sys/mman.h>
#define debug(...) if (_glfw.hints.init.debugRendering) { fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic())); fprintf(stderr, __VA_ARGS__); }
static GLFWLayerShellConfig layer_shell_config_for_next_window = {0};

1
glfw/xkb_glfw.c vendored
View file

@ -33,6 +33,7 @@
#include <X11/XKBlib.h>
#endif
#undef debug
#define debug(...) if (_glfw.hints.init.debugKeyboard) fprintf(stderr, __VA_ARGS__);
#ifdef XKB_HAS_NO_UTF32