X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=a90dda6a4f5197c12bf26c25a8afc806da9fb906;hb=2a8ede00043f4f5b64beffdc604e0f17d57d3eb8;hp=293546b758753f21694423f87faf9833ddc75149;hpb=a6e4aba8063494f010251393c26ff2e56fb973ba;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 293546b7..a90dda6a 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -415,6 +415,10 @@ void client_unmanage(ObClient *self) keyboard_grab_for_client(self, FALSE); mouse_grab_for_client(self, FALSE); + /* potentially fix focusLast */ + if (config_focus_last) + grab_pointer(TRUE, OB_CURSOR_NONE); + /* remove the window from our save set */ XChangeSaveSet(ob_display, self->window, SetModeDelete); @@ -518,6 +522,9 @@ void client_unmanage(ObClient *self) /* update the list hints */ client_set_list(); + + if (config_focus_last) + grab_pointer(FALSE, OB_CURSOR_NONE); } static void client_urgent_notify(ObClient *self) @@ -1498,6 +1505,12 @@ void client_update_title(ObClient *self) data = vdata; } + // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html + if (self->transient) + data = '\0'; + else + data = g_strdup("Unnamed Window"); + PROP_SETS(self->window, net_wm_visible_icon_name, data); self->icon_title = data;