mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 05:59:15 +00:00
Avoid arranging windows while reloading config
This commit is contained in:
parent
cca420b2f8
commit
d77a0119f4
|
@ -228,6 +228,9 @@ static void apply_vert_layout(struct sway_container *container, const double x,
|
||||||
|
|
||||||
void arrange_windows(struct sway_container *container,
|
void arrange_windows(struct sway_container *container,
|
||||||
double width, double height) {
|
double width, double height) {
|
||||||
|
if (config->reloading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
int i;
|
int i;
|
||||||
if (width == -1 || height == -1) {
|
if (width == -1 || height == -1) {
|
||||||
width = container->width;
|
width = container->width;
|
||||||
|
@ -246,7 +249,6 @@ void arrange_windows(struct sway_container *container,
|
||||||
double x = 0, y = 0;
|
double x = 0, y = 0;
|
||||||
switch (container->type) {
|
switch (container->type) {
|
||||||
case C_ROOT:
|
case C_ROOT:
|
||||||
// TODO: wlr_output_layout probably
|
|
||||||
for (i = 0; i < container->children->length; ++i) {
|
for (i = 0; i < container->children->length; ++i) {
|
||||||
struct sway_container *output = container->children->items[i];
|
struct sway_container *output = container->children->items[i];
|
||||||
wlr_log(L_DEBUG, "Arranging output '%s' at %f,%f",
|
wlr_log(L_DEBUG, "Arranging output '%s' at %f,%f",
|
||||||
|
|
Loading…
Reference in a new issue