mirror of
https://github.com/labwc/labwc.git
synced 2026-03-17 05:33:47 -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;
|
struct view *view;
|
||||||
for_each_view(view, &server->views, criteria) {
|
for_each_view(view, &server->views, criteria) {
|
||||||
if (!(cycle_outputs & view->output->id_bit)) {
|
if (filter.output != CYCLE_OUTPUT_ALL) {
|
||||||
continue;
|
if (!view->output || !(cycle_outputs & view->output->id_bit)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cycle_app_id && strcmp(view->app_id, cycle_app_id) != 0) {
|
if (cycle_app_id && strcmp(view->app_id, cycle_app_id) != 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue