mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Implement fullscreen global
This commit is contained in:
parent
75406bb93b
commit
20aa8ee67d
22 changed files with 331 additions and 131 deletions
|
|
@ -985,7 +985,15 @@ void output_render(struct sway_output *output, struct timespec *when,
|
|||
goto render_overlay;
|
||||
}
|
||||
|
||||
struct sway_container *fullscreen_con = workspace->current.fullscreen;
|
||||
struct sway_container *fullscreen_con = root->fullscreen_global;
|
||||
if (fullscreen_con && fullscreen_con->scratchpad &&
|
||||
!fullscreen_con->workspace) {
|
||||
fullscreen_con = NULL;
|
||||
}
|
||||
if (!fullscreen_con) {
|
||||
fullscreen_con = workspace->current.fullscreen;
|
||||
}
|
||||
|
||||
if (fullscreen_con) {
|
||||
float clear_color[] = {0.0f, 0.0f, 0.0f, 1.0f};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue