Skip to content

Commit

Permalink
xdg-shell: ignore unecessary fullscreen request ouput hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan Pigott committed Apr 26, 2021
1 parent c121699 commit a6dc829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sway/desktop/xdg_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
if (e->fullscreen && e->output && e->output->data) {
struct sway_output *output = e->output->data;
struct sway_workspace *ws = output_get_active_workspace(output);
if (ws && !container_is_scratchpad_hidden(container)) {
if (ws && !container_is_scratchpad_hidden(container) &&
container->pending.workspace != ws) {
if (container_is_floating(container)) {
workspace_add_floating(ws, container);
} else {
Expand Down

0 comments on commit a6dc829

Please sign in to comment.