THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#973 - Menus of Java applications close when mouse is released
User who did this - Uli Schlachter (psychon)

----------
Why does java have to use these weird focus models? :-(

Could you add some printf's to client_focus_refresh()? Dunno how well you know 
C, but something like:

diff --git a/objects/client.c b/objects/client.c
index a5b9d77..dab9029 100644
--- a/objects/client.c
+++ b/objects/client.c
@@ -325,8 +325,14 @@ client_focus_refresh(void)
        return;
    globalconf.focus.need_update = false;

+    printf("%d: ", (int) time(NULL));
    if(c)
    {
+        printf("Working with client '%s', nofocus: %s, take focus: %s\n",
+                c->name, c->nofocus ? "yes" : "no",
+                client_hasproto(c, WM_TAKE_FOCUS) ? "yes" : "no");
+        if(c->isbanned)
+            puts("Was banned");
        /* Make sure this window is unbanned and e.g. not minimized */
        client_unban(c);
        /* Sets focus on window - using xcb_set_input_focus or WM_TAKE_FOCUS */
@@ -341,6 +347,7 @@ client_focus_refresh(void)
        if(client_hasproto(c, WM_TAKE_FOCUS))
            xwindow_takefocus(c->window);
    }
+    else puts("Focusing root window");

    /* If nothing has the focused or the currently focused client doesn't want
     * us to focus it, this sets the focus to the root window. This makes sure
----------

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=973#comment3075

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to