improve basic multi output support

This commit is contained in:
DanyLE
2024-04-15 13:56:11 +02:00
parent 7df1dec7f3
commit fdb2843561
9 changed files with 100 additions and 202 deletions

6
xdg.c
View File

@@ -114,7 +114,7 @@ static void xdg_toplevel_unmap(struct wl_listener *listener, void *data)
{
diyac_reset_cursor_mode(toplevel->server);
}
if (toplevel->state.fullscreen)
if (toplevel->state.fullscreen && toplevel->output)
{
/**
* When a client exit during fullscreen mode, the top layer shall
@@ -241,6 +241,10 @@ static void handle_xdg_popup_destroy(struct wl_listener *listener, void *data)
static void popup_unconstrain(struct diyac_popup *popup)
{
struct diyac_view *view = popup->parent;
if(!view->output)
{
return;
}
struct diyac_server *server = view->server;
struct wlr_output_layout *output_layout = server->output_layout;
struct wlr_output *wlr_output = view->output->wlr_output;