vi: check layer state before opening or closing

This commit is contained in:
Liam
2024-01-17 22:03:40 -05:00
parent 5f9a3c23db
commit c6dc206cd6
4 changed files with 27 additions and 12 deletions
+2 -2
View File
@@ -74,10 +74,10 @@ public:
[[nodiscard]] std::optional<u64> CreateLayer(u64 display_id);
/// Opens a layer on all displays for the given layer ID.
void OpenLayer(u64 layer_id);
bool OpenLayer(u64 layer_id);
/// Closes a layer on all displays for the given layer ID.
void CloseLayer(u64 layer_id);
bool CloseLayer(u64 layer_id);
/// Destroys the given layer ID.
void DestroyLayer(u64 layer_id);