From ed51fa2b968d7718bb404c11e5b445a0b581189d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 20 Jan 2014 15:11:53 -0500 Subject: [PATCH] add client util function for detecting borderless state --- src/bin/e_client.x | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/e_client.x b/src/bin/e_client.x index 69bff4b8f..1ea32b4ba 100644 --- a/src/bin/e_client.x +++ b/src/bin/e_client.x @@ -96,3 +96,9 @@ e_client_resizing_get(const E_Client *ec) { return (ec->resize_mode != E_POINTER_RESIZE_NONE); } + +static inline Eina_Bool +e_client_util_borderless(const E_Client *ec) +{ + return (ec->borderless || ec->mwm.borderless || (!ec->border.name) || (!strcmp(ec->border.name, "borderless"))); +}