aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2015-08-24 14:57:19 +0000
committerokan2015-08-24 14:57:19 +0000
commite76666595f56078b393ce83cc4f32f2cfd5f24b9 (patch)
treeb04523109dbfb8efdf614364d2f8df70cba95eb6
parente2aab321d2df8bfc110397924abc171422694b9e (diff)
downloadcwm-e76666595f56078b393ce83cc4f32f2cfd5f24b9.tar.gz
Don't allow freeze operations on fullscreen (consistent with what
fullscreen does).
Diffstat (limited to '')
-rw-r--r--client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/client.c b/client.c
index 91c9d2c..6e8d5e0 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.203 2015/08/23 17:31:20 okan Exp $
+ * $OpenBSD: client.c,v 1.204 2015/08/24 14:57:19 okan Exp $
*/
#include <sys/types.h>
@@ -233,6 +233,9 @@ client_current(void)
void
client_toggle_freeze(struct client_ctx *cc)
{
+ if (cc->flags & CLIENT_FULLSCREEN)
+ return;
+
if (cc->flags & CLIENT_FREEZE)
cc->flags &= ~CLIENT_FREEZE;
else