improve basic multi output support
This commit is contained in:
6
xdg.c
6
xdg.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user