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();