mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-10 21:48:22 +03:00
Merge branch 'explicit-noop' into dev
This commit is contained in:
commit
176a649e85
1 file changed
+15
-8
+15
-8
@@ -28,10 +28,6 @@
|
||||
#include "wlr-screencopy-unstable-v1-client-protocol.h"
|
||||
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||
|
||||
static void noop() {
|
||||
// This space is intentionally left blank
|
||||
}
|
||||
|
||||
struct wd_pending_config {
|
||||
struct wd_state *state;
|
||||
struct wl_list *outputs;
|
||||
@@ -669,10 +665,13 @@ static void output_manager_handle_done(void *data,
|
||||
wd_ui_reset_heads(state);
|
||||
}
|
||||
|
||||
static void noop_output_manager_finished(void *data, struct zwlr_output_manager_v1 *zwlr_output_manager_v1) {
|
||||
}
|
||||
|
||||
static const struct zwlr_output_manager_v1_listener output_manager_listener = {
|
||||
.head = output_manager_handle_head,
|
||||
.done = output_manager_handle_done,
|
||||
.finished = (void (*)(void *, struct zwlr_output_manager_v1 *))noop,
|
||||
.finished = noop_output_manager_finished,
|
||||
};
|
||||
static void registry_handle_global(void *data, struct wl_registry *registry,
|
||||
uint32_t name, const char *interface, uint32_t version) {
|
||||
@@ -697,9 +696,12 @@ static void registry_handle_global(void *data, struct wl_registry *registry,
|
||||
}
|
||||
}
|
||||
|
||||
static void noop_registry_global_remove(void *data, struct wl_registry *wl_registry, uint32_t name) {
|
||||
}
|
||||
|
||||
static const struct wl_registry_listener registry_listener = {
|
||||
.global = registry_handle_global,
|
||||
.global_remove = (void (*)(void *, struct wl_registry *, uint32_t))noop,
|
||||
.global_remove = noop_registry_global_remove,
|
||||
};
|
||||
|
||||
void wd_add_output_management_listener(struct wd_state *state, struct
|
||||
@@ -758,12 +760,17 @@ static void output_name(void *data, struct zxdg_output_v1 *zxdg_output_v1,
|
||||
}
|
||||
}
|
||||
|
||||
static void noop_output_done(void *data, struct zxdg_output_v1 *zxdg_output_v1) {
|
||||
}
|
||||
static void noop_output_description(void *data, struct zxdg_output_v1 *zxdg_output_v1, const char *description) {
|
||||
}
|
||||
|
||||
static const struct zxdg_output_v1_listener output_listener = {
|
||||
.logical_position = output_logical_position,
|
||||
.logical_size = output_logical_size,
|
||||
.done = (void (*)(void *, struct zxdg_output_v1 *))noop,
|
||||
.done = noop_output_done,
|
||||
.name = output_name,
|
||||
.description = (void (*)(void *, struct zxdg_output_v1 *, const char *))noop
|
||||
.description = noop_output_description
|
||||
};
|
||||
|
||||
void wd_add_output(struct wd_state *state, struct wl_output *wl_output,
|
||||
|
||||
Reference in new issue
Block a user