Preserving previous output

This commit is contained in:
Andrew Laucius 2026-03-05 10:54:54 -05:00
parent 992d201512
commit b6efbc6f04
5 changed files with 18 additions and 3 deletions

View file

@ -3,6 +3,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdarg.h>
#include "list.h"
#ifdef __GNUC__

View file

@ -39,6 +39,8 @@ struct sway_output {
struct wlr_scene_rect *fullscreen_background;
struct wlr_output *wlr_output;
char *previous_output_name;
struct wlr_scene_output *scene_output;
struct sway_server *server;
struct wl_list link;

View file

@ -45,6 +45,7 @@ struct sway_workspace {
struct side_gaps gaps_outer;
struct sway_output *output; // NULL if no outputs are connected
char *previous_output_name; // NULL if no previous output
list_t *floating; // struct sway_container
list_t *tiling; // struct sway_container
list_t *output_priority;