From 48b6fd9ac4cb82c0c176a4554ce3272c01025aae Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 20 Sep 2009 15:37:54 +0200 Subject: 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. --- openbox/event.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbox/event.c') 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) { -- cgit v1.2.3