[Xfce4-commits] [xfce/xfwm4] 01/01: Remove maximize button from non-resizable windows (bug #10910)

noreply at xfce.org noreply at xfce.org
Mon Dec 1 16:21:33 CET 2014


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfwm4.

commit 78b5c3c48a187ae54d97369a738b8a18e31e459a
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Fri Apr 18 12:00:00 2014 +0200

    Remove maximize button from non-resizable windows (bug #10910)
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
 src/client.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/client.c b/src/client.c
index 0e19fdb..8f19d7b 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1149,6 +1149,10 @@ clientGetWMNormalHints (Client *c, gboolean update)
     {
         FLAG_SET (c->xfwm_flags, XFWM_FLAG_IS_RESIZABLE);
     }
+    else
+    {
+        FLAG_UNSET (c->xfwm_flags, XFWM_FLAG_HAS_MAXIMIZE | XFWM_FLAG_HAS_RESIZE);
+    }
 
     if (update)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list