DRYer
This commit is contained in:
parent
ecee7086a8
commit
f51c2f08a5
7 changed files with 4 additions and 4 deletions
1
glfw/ibus_glfw.c
vendored
1
glfw/ibus_glfw.c
vendored
|
|
@ -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";
|
||||
|
|
|
|||
1
glfw/wl_client_side_decorations.c
vendored
1
glfw/wl_client_side_decorations.c
vendored
|
|
@ -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
2
glfw/wl_init.c
vendored
|
|
@ -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
1
glfw/wl_platform.h
vendored
|
|
@ -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__); }
|
||||
|
|
|
|||
1
glfw/wl_text_input.c
vendored
1
glfw/wl_text_input.c
vendored
|
|
@ -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
1
glfw/wl_window.c
vendored
|
|
@ -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
1
glfw/xkb_glfw.c
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue