Skip to content

Commit

Permalink
feat: update to v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 21, 2024
1 parent 27356dc commit 59799e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 2 additions & 0 deletions include/saucer/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

Expand Down
5 changes: 5 additions & 0 deletions src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 59799e3

Please sign in to comment.