mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
container: Move pending state to state struct
Pending state is currently inlined directly in the container struct, while the current state is in a state struct. A side-effect of this is that it is not immediately obvious that pending double-buffered state is accessed, nor is it obvious what state is double-buffered. Instead, use the state struct for both current and pending.
This commit is contained in:
parent
28cadf5580
commit
a047b5ee4a
33 changed files with 723 additions and 757 deletions
|
|
@ -957,7 +957,7 @@ static void render_floating(struct sway_output *soutput,
|
|||
}
|
||||
for (int k = 0; k < ws->current.floating->length; ++k) {
|
||||
struct sway_container *floater = ws->current.floating->items[k];
|
||||
if (floater->fullscreen_mode != FULLSCREEN_NONE) {
|
||||
if (floater->pending.fullscreen_mode != FULLSCREEN_NONE) {
|
||||
continue;
|
||||
}
|
||||
render_floating_container(soutput, damage, floater);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue