diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-03 08:41:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-03 08:41:43 +0000 |
| commit | 5bf70002f92ce6612ccc781c73a1ec843ffc1ce6 (patch) | |
| tree | 53b32013a881f7a67c704933469ced8029ed73c5 /src | |
| parent | 05a8e51f177b1d0215bcd8c4b6f7b65e7ba7d3ed (diff) | |
support the kde override_redirect hint, to make a window decor-less
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client.cc b/src/client.cc index 3cd41d72..36019d99 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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 } |
