diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2009-09-20 15:37:54 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2009-09-20 15:37:54 +0200 |
| commit | 48b6fd9ac4cb82c0c176a4554ce3272c01025aae (patch) | |
| tree | e947f6df39cc4370d53140c705eac4755bdaba51 /openbox/event.c | |
| parent | 1169118e60050ee361e22111ffce842ff393d8bf (diff) | |
Reload motif wm hints when property changes
Google's chrome does this when you toggle window decorations.
Based on patch in #4250 by Daniel Erat.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index ddd2e326..71fed413 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1517,6 +1517,13 @@ static void event_handle_client(ObClient *client, XEvent *e) reconfigure the window if it needs to. emacs will update its normal hints every time it receives a conigurenotify */ client_reconfigure(client, FALSE); + } else if (msgtype == prop_atoms.motif_wm_hints) { + client_get_mwm_hints(client); + /* This can override some mwm hints */ + client_get_type_and_transientness(client); + + /* Apply the changes to the window */ + client_setup_decor_and_functions(client, TRUE); } else if (msgtype == XA_WM_HINTS) { client_update_wmhints(client); } else if (msgtype == XA_WM_TRANSIENT_FOR) { |
