Avoid refreshing twice in output test
Waking up the compositor automatically refreshed the output list. Therefore, avoid refreshing it manually again. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
731091a70a
commit
6c19c352bc
@ -147,16 +147,14 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
printf("Wakeing up compositor...\n");
|
||||
kmscon_compositor_wake_up(comp);
|
||||
kmscon_compositor_use(comp);
|
||||
|
||||
printf("Refreshing compositor...\n");
|
||||
ret = kmscon_compositor_refresh(comp);
|
||||
ret = kmscon_compositor_wake_up(comp);
|
||||
if (ret < 0) {
|
||||
printf("Cannot refresh compositor: %d\n", ret);
|
||||
printf("Cannot wakeup compositor: %d\n", ret);
|
||||
goto err_unref;
|
||||
}
|
||||
|
||||
kmscon_compositor_use(comp);
|
||||
|
||||
if (argc < 2) {
|
||||
ret = list_outputs(comp);
|
||||
if (ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user