diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2015-08-24 14:57:20 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2015-08-24 14:57:20 +0000 |
commit | fd7740579b0eb5e659adc87fbfd220c6fbd5a986 (patch) | |
tree | ed7437bc77c9ed1b4f05826ce6ff28757da0ee78 | |
parent | fe73348a9df44813d9d20433713841774a95bbc5 (diff) |
Don't allow freeze operations on fullscreen (consistent with what
fullscreen does).
-rw-r--r-- | app/cwm/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index 91c9d2cd9..6e8d5e095 100644 --- a/app/cwm/client.c +++ b/app/cwm/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 |