From 59799e36a052487c0532426df2145313821489d6 Mon Sep 17 00:00:00 2001 From: Curve Date: Mon, 21 Oct 2024 20:13:17 +0200 Subject: [PATCH] feat: update to v4.1.0 --- CMakeLists.txt | 2 +- include/saucer/window.h | 2 ++ src/window.cpp | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f947549..4c9ee0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ include("cmake/cpm.cmake") CPMFindPackage( NAME saucer - VERSION 4.0.1 + VERSION 4.1.0 GIT_REPOSITORY "https://github.com/saucer/saucer" ) diff --git a/include/saucer/window.h b/include/saucer/window.h index c8cc217..f0c41b9 100644 --- a/include/saucer/window.h +++ b/include/saucer/window.h @@ -39,7 +39,9 @@ extern "C" struct saucer_handle; + SAUCER_EXPORT bool saucer_window_visible(saucer_handle *); SAUCER_EXPORT bool saucer_window_focused(saucer_handle *); + SAUCER_EXPORT bool saucer_window_minimized(saucer_handle *); SAUCER_EXPORT bool saucer_window_maximized(saucer_handle *); diff --git a/src/window.cpp b/src/window.cpp index 3ffbd62..843f044 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -13,6 +13,11 @@ extern "C" { + bool saucer_window_visible(saucer_handle *handle) + { + return handle->visible(); + } + bool saucer_window_focused(saucer_handle *handle) { return handle->focused();