From 0d0ce065df9ff1acc06fe63e4a0fe45c184de693 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 6 Jul 2007 19:41:23 +0000 Subject: don't focus helper windows that map unless there are no other valid targets in the group (don't move focus from a group window to a new helper window). this fixes gucharmap. --- openbox/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 015e36f2..4383bc7d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -274,6 +274,9 @@ void client_manage(Window window) /* get all the stuff off the window */ client_get_all(self, TRUE); + ob_debug("Window type: %d\n", self->type); + ob_debug("Window group: 0x%x\n", self->group?self->group->leader:0); + /* specify that if we exit, the window should not be destroyed and should be reparented back to root automatically */ XChangeSaveSet(ob_display, window, SetModeInsert); @@ -320,7 +323,7 @@ void client_manage(Window window) client_search_focus_tree_full(self)) && /* this checks for focus=false for the window */ (!settings || settings->focus != 0) && - focus_valid_target(self, FALSE, TRUE, FALSE, FALSE)) + focus_valid_target(self, FALSE, FALSE, TRUE, FALSE, FALSE)) { activate = TRUE; } -- cgit v1.2.3