mirror of
https://github.com/labwc/labwc.git
synced 2026-03-18 05:33:53 -04:00
src/cycle: handle views without output
Fixes: #3425 Reported-By: kode54
This commit is contained in:
parent
3bb4ccd22d
commit
f0589810ad
1 changed files with 4 additions and 2 deletions
|
|
@ -346,8 +346,10 @@ init_cycle(struct server *server, struct cycle_filter filter)
|
|||
|
||||
struct view *view;
|
||||
for_each_view(view, &server->views, criteria) {
|
||||
if (!(cycle_outputs & view->output->id_bit)) {
|
||||
continue;
|
||||
if (filter.output != CYCLE_OUTPUT_ALL) {
|
||||
if (!view->output || !(cycle_outputs & view->output->id_bit)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (cycle_app_id && strcmp(view->app_id, cycle_app_id) != 0) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue