wayland: Listen to output changes
This commit is contained in:
@ -1,18 +1,19 @@
|
||||
#ifndef WAYLAND_H
|
||||
#define WAYLAND_H
|
||||
|
||||
#include <gmodule.h>
|
||||
|
||||
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||
#include "virtual-keyboard-unstable-v1-client-protocol.h"
|
||||
#include "input-method-unstable-v2-client-protocol.h"
|
||||
|
||||
#include <gmodule.h>
|
||||
|
||||
#include "outputs.h"
|
||||
|
||||
struct squeek_wayland {
|
||||
struct zwlr_layer_shell_v1 *layer_shell;
|
||||
struct zwp_virtual_keyboard_manager_v1 *virtual_keyboard_manager;
|
||||
struct zwp_input_method_manager_v2 *input_method_manager;
|
||||
GPtrArray *outputs; // *wl_output
|
||||
struct squeek_outputs *outputs;
|
||||
struct wl_seat *seat;
|
||||
};
|
||||
|
||||
@ -21,7 +22,7 @@ extern struct squeek_wayland *squeek_wayland;
|
||||
|
||||
|
||||
static inline void squeek_wayland_init(struct squeek_wayland *wayland) {
|
||||
wayland->outputs = g_ptr_array_new();
|
||||
wayland->outputs = squeek_outputs_new();
|
||||
}
|
||||
|
||||
static inline void squeek_wayland_set_global(struct squeek_wayland *wayland) {
|
||||
@ -29,7 +30,7 @@ static inline void squeek_wayland_set_global(struct squeek_wayland *wayland) {
|
||||
}
|
||||
|
||||
static inline void squeek_wayland_deinit(struct squeek_wayland *wayland) {
|
||||
g_ptr_array_free(wayland->outputs, TRUE);
|
||||
squeek_outputs_free(wayland->outputs);
|
||||
}
|
||||
|
||||
#endif // WAYLAND_H
|
||||
|
||||
Reference in New Issue
Block a user