]> Dogcows Code - chaz/openbox/commitdiff
support the kde override_redirect hint, to make a window decor-less
authorDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 08:41:43 +0000 (08:41 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 08:41:43 +0000 (08:41 +0000)
src/client.cc

index 3cd41d72fce2d4b89afe613d2bd43663cc9359d2..36019d9987c41c270ff19459980c9f010a1c9132 100644 (file)
@@ -58,8 +58,8 @@ Client::Client(int screen, Window window)
   getDesktop();
 
   updateTransientFor();
-  getType();
   getMwmHints();
+  getType(); // this can change the mwmhints for special cases
 
   getState();
   getShaped();
@@ -188,9 +188,11 @@ void Client::getType()
         _type = Type_Dialog;
       else if (val[i] == otk::Property::atoms.net_wm_window_type_normal)
         _type = Type_Normal;
-//    XXX: make this work again
-//    else if (val[i] == otk::Property::atoms.kde_net_wm_window_type_override)
-//      mwm_decorations = 0; // prevent this window from getting any decor
+      else if (val[i] == otk::Property::atoms.kde_net_wm_window_type_override){
+        // prevent this window from getting any decor
+        _mwmhints.flags &= MwmFlag_Decorations;
+        _mwmhints.decorations = 0;
+      }
       if (_type != (WindowType) -1)
         break; // grab the first known type
     }
This page took 0.024169 seconds and 4 git commands to generate.