improve xdg + layer shell support

This commit is contained in:
DanyLE
2024-04-01 15:38:57 +02:00
parent 55719d6dba
commit a54dcb682c
13 changed files with 355 additions and 141 deletions

6
seat.c
View File

@@ -4,7 +4,7 @@
#include <stdlib.h>
#include <wlr/util/log.h>
#include "seat.h"
#include "desktop.h"
#include "view.h"
static void keyboard_handle_modifiers(
@@ -48,7 +48,7 @@ static bool handle_keybinding(struct diyac_server *server, xkb_keysym_t sym)
}
struct diyac_view *next_toplevel =
wl_container_of(server->views.prev, next_toplevel, link);
diyac_focus_view(next_toplevel);
diyac_focus_view(next_toplevel, true);
break;
default:
return false;
@@ -291,7 +291,7 @@ void diyac_seat_focus_surface(struct diyac_seat *seat, struct wlr_surface *surfa
}
void diyac_seat_focus_layer(struct diyac_seat *seat, struct wlr_layer_surface_v1 *layer)
{
{ wlr_log(WLR_INFO, "diyac_seat_focus_layer");
if (!layer)
{
seat->focused_layer = NULL;