From 02b9d474f1dad0fcb15f4832a582d99e51ee64b6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 3 Feb 2003 10:50:14 +0000 Subject: [PATCH] dont let maximizing occur if the window cant move or resize --- src/client.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.cc b/src/client.cc index 1cbb8605..95c49877 100644 --- a/src/client.cc +++ b/src/client.cc @@ -300,6 +300,10 @@ void Client::setupDecorAndFunctions() } } + // can't maximize without moving/resizing + if (!((_functions & Func_Move) && (_functions & Func_Resize))) + _functions &= ~Func_Maximize; + // finally, user specified disabled decorations are applied to subtract // decorations if (_disabled_decorations & Decor_Titlebar) -- 2.45.2