fixes
This commit is contained in:
parent
ae999d1b83
commit
72a53cb6c8
3 changed files with 4 additions and 6 deletions
|
|
@ -72,7 +72,7 @@ static void registry_handle_global(
|
|||
// Set up wl_surface
|
||||
state->wl_surface = wl_compositor_create_surface(state->wl_compositor);
|
||||
}
|
||||
if (strcmp(interface, xdg_wm_base_interface.name) == 0) {
|
||||
if ((strcmp(interface, xdg_wm_base_interface.name) == 0) && (state->output_type == OUTPUT_WINDOW)) {
|
||||
state->xdg_wm_base = wl_registry_bind(
|
||||
registry, name, &xdg_wm_base_interface, 1);
|
||||
xdg_wm_base_add_listener(state->xdg_wm_base,
|
||||
|
|
@ -85,7 +85,7 @@ static void registry_handle_global(
|
|||
xdg_toplevel_set_title(state->xdg_toplevel, "GLONKERS! 🕴️");
|
||||
xdg_toplevel_add_listener(state->xdg_toplevel, &xdg_toplevel_listener, state);
|
||||
}
|
||||
if (strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) {
|
||||
if ((strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) && (state->output_type == OUTPUT_LAYER)) {
|
||||
state->zwlr_layer_shell_v1 = wl_registry_bind(registry, name, &zwlr_layer_shell_v1_interface, 4);
|
||||
}
|
||||
if (strcmp(interface, wl_output_interface.name) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue