compositor-fbdev: Close fd used for re-enabling if that fails
The device will be opened again in fbdev_output_create().
This commit is contained in:
committed by
Kristian Høgsberg
parent
f8ef42feae
commit
581b3fd779
@@ -695,6 +695,8 @@ fbdev_output_reenable(struct fbdev_compositor *compositor,
|
||||
"Attempting to re-open output anyway.\n");
|
||||
}
|
||||
|
||||
close(fb_fd);
|
||||
|
||||
/* Remove and re-add the output so that resources depending on
|
||||
* the frame buffer X/Y resolution (such as the shadow buffer)
|
||||
* are re-initialised. */
|
||||
|
||||
Reference in New Issue
Block a user