Skip to content

Move sgeom assignment#2

Merged
Stivvo merged 1 commit intoStivvo:handleUnplugfrom
guidocella:handleUnplug
Oct 18, 2020
Merged

Move sgeom assignment#2
Stivvo merged 1 commit intoStivvo:handleUnplugfrom
guidocella:handleUnplug

Conversation

@guidocella
Copy link
Copy Markdown

There is no need to repeat this. This needs to be reculalculated in my
output-management implementation too, and since I'm already calling
updatemons, this patch avoids having to repeat the assignment again.

There is no need to repeat this. This needs to be reculalculated in my
output-management implementation too, and since I'm already calling
updatemons, this patch avoids having to repeat the assignment again.
@Stivvo Stivvo merged commit 96d9f01 into Stivvo:handleUnplug Oct 18, 2020
@guidocella guidocella deleted the handleUnplug branch October 18, 2020 16:31
@guidocella
Copy link
Copy Markdown
Author

When I use swayidle timeout 1 'wlr-randr --output $(wlr-randr | cut -d \ -f 1) --off' resume 'wlr-randr --output $(wlr-randr | cut -d \ -f 1) --on; pkill -n swayidle on a single monitor to emulate xset dpms force off with your addition to output-management

} else {
    Monitor *m;
    wl_list_for_each(m, &mons, link) {
        if (m->wlr_output->name == wlr_output->name) {
            // focus the left monitor (relative to the current focus)
            m->wlr_output->enabled = !m->wlr_output->enabled;
            focusmon(&ar);
            closemon(m);
            m->wlr_output->enabled = !m->wlr_output->enabled;
        }
    }
}

my system freezes completely and I have to reboot.
I don't know if that happens with multiple monitors, if it doesn't the solution is just not to run that code path when there's only 1 monitor.

Stivvo pushed a commit that referenced this pull request Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants