mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
xdg-shell: ignore unecessary fullscreen request ouput hints
This commit is contained in:
parent
c12169953a
commit
a6dc829ed0
1 changed files with 2 additions and 1 deletions
|
@ -358,7 +358,8 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
|
||||||
if (e->fullscreen && e->output && e->output->data) {
|
if (e->fullscreen && e->output && e->output->data) {
|
||||||
struct sway_output *output = e->output->data;
|
struct sway_output *output = e->output->data;
|
||||||
struct sway_workspace *ws = output_get_active_workspace(output);
|
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)) {
|
if (container_is_floating(container)) {
|
||||||
workspace_add_floating(ws, container);
|
workspace_add_floating(ws, container);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue