mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-03-12 18:59:15 +02:00
output,seat: name => global_name
This commit is contained in:
parent
8a9a5689c4
commit
29c6ebf48c
@ -28,7 +28,7 @@ struct dp_buffer {
|
||||
struct dp_output {
|
||||
struct dp_state *state;
|
||||
|
||||
uint32_t name;
|
||||
uint32_t global_name;
|
||||
struct wl_output *wl_output;
|
||||
|
||||
struct wl_surface *main_surface;
|
||||
@ -71,7 +71,7 @@ struct dp_output {
|
||||
struct dp_seat {
|
||||
struct dp_state *state;
|
||||
|
||||
uint32_t name;
|
||||
uint32_t global_name;
|
||||
struct wl_seat *wl_seat;
|
||||
|
||||
struct wl_keyboard *keyboard;
|
||||
|
@ -51,14 +51,14 @@ static void registry_handle_global_remove(void *data, struct wl_registry *regist
|
||||
|
||||
struct dp_output *output;
|
||||
wl_list_for_each (output, &state->outputs, link) {
|
||||
if (output->name == name) {
|
||||
if (output->global_name == name) {
|
||||
dp_log_fatal("An output was removed");
|
||||
}
|
||||
}
|
||||
|
||||
struct dp_seat *seat;
|
||||
wl_list_for_each (seat, &state->seats, link) {
|
||||
if (seat->name == name) {
|
||||
if (seat->global_name == name) {
|
||||
dp_seat_destroy(seat);
|
||||
return;
|
||||
}
|
||||
|
@ -320,7 +320,7 @@ void dp_output_hide_surface(struct dp_output *output) {
|
||||
void dp_output_create(struct dp_state *state, uint32_t name, struct wl_output *wl_output) {
|
||||
struct dp_output *output = dp_zalloc(sizeof(*output));
|
||||
output->state = state;
|
||||
output->name = name;
|
||||
output->global_name = name;
|
||||
output->wl_output = wl_output;
|
||||
|
||||
wl_output_add_listener(output->wl_output, &output_listener, output);
|
||||
|
@ -238,7 +238,7 @@ static const struct wl_seat_listener seat_listener = {
|
||||
void dp_seat_create(struct dp_state *state, uint32_t name, struct wl_seat *wl_seat) {
|
||||
struct dp_seat *seat = dp_zalloc(sizeof(*seat));
|
||||
seat->state = state;
|
||||
seat->name = name;
|
||||
seat->global_name = name;
|
||||
seat->wl_seat = wl_seat;
|
||||
|
||||
seat->xkb_keymap =
|
||||
|
Loading…
x
Reference in New Issue
Block a user