From e76666595f56078b393ce83cc4f32f2cfd5f24b9 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 24 Aug 2015 14:57:19 +0000 Subject: Don't allow freeze operations on fullscreen (consistent with what fullscreen does). --- client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client.c') 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 @@ -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 -- cgit v1.2.3-2-gb3c3