Menu

#752 Slit focus in rc3

future release
closed-invalid
nobody
5
2016-07-31
2007-05-10
No

When I focus the slit, I can't type. It types on the focused window. But when I have no windows in the desktop, I can do it. In rc2, it works properly.

I have wmcalc dockapp and I like to focus with mouse and directly type over it.

Thanks

Discussion

  • Mark Tiefenbruck

    Logged In: YES
    user_id=1538990
    Originator: NO

    Sorry, I don't think I can fix this one. When you hover over wmcalc, it (not us) sets the focus to follow the mouse, instead of doing the obvious thing and just taking the focus. When the focus is set to follow the mouse, we use that as a cue that something has gone wrong and we need to focus a real window again. For instance, this happens when you close the menu with the mouse over it.

     
  • Gaspar Fernández

    Logged In: YES
    user_id=1770695
    Originator: YES

    But in older versions of fluxbox I could do it

     
  • Mark Tiefenbruck

    Logged In: YES
    user_id=1538990
    Originator: NO

    In older versions of fluxbox, if you closed the menu with the mouse over it, then regular window focus would be broken. I think that's more important, but I would classify this as a misbehavior of wmcalc, anyway. Get them to set the focus to themselves, rather than PointerRoot.

     
  • Gaspar Fernández

    Logged In: YES
    user_id=1770695
    Originator: YES

    Thank you Mark.

    Finally I found XSetInputFocus looking in wmcalc.c and modified it. Now it works.

    Thanks

     
  • Henrik Kinnunen

    Henrik Kinnunen - 2007-10-03
    • status: open --> closed-invalid
     
  • Henrik Kinnunen

    Henrik Kinnunen - 2007-10-03
    • status: closed-invalid --> open-remind
     
  • arena_cz

    arena_cz - 2007-10-11

    Logged In: YES
    user_id=1911216
    Originator: NO

    Hello blakeyed Could You please send me Your modified wmcalc.c to janmarek@gdi.cz or mention how You changed the wmcalc.c,how should be the parameters of XSetInputFocus.

    Best regards

    Jan

     
  • Gaspar Fernández

    fixed wmcalc.c

     
  • Gaspar Fernández

    Logged In: YES
    user_id=1770695
    Originator: YES

    File Added: wmcalc.c

     
  • Gaspar Fernández

    Logged In: YES
    user_id=1770695
    Originator: YES

    Hello arena_cz. I've attached wmcalc.c here. I modified line 395 in this way:

    394 case LeaveNotify:
    395 XSetInputFocus(display, win, RevertToParent, CurrentTime);
    396 if (Verbose) printf("Focus Change\n");
    397 break;
    398 }

    Best regards

     
  • arena_cz

    arena_cz - 2007-10-12

    Logged In: YES
    user_id=1911216
    Originator: NO

    Thank You blakeyed,
    no experience in programing so this is very helpful...

    Best regards

     
  • arena_cz

    arena_cz - 2007-10-12

    Logged In: YES
    user_id=1911216
    Originator: NO

    Thank You blakeyed,
    no experience in programing so this is very helpful...

    Best regards

     
  • Mathias Gumz

    Mathias Gumz - 2015-01-28
    • Group: v1.3.5 --> future release
     
  • Thomas Luebking

    Thomas Luebking - 2016-07-31
    • status: open-remind --> closed-invalid
     
  • Thomas Luebking

    Thomas Luebking - 2016-07-31

    a) this was a bug in wmcalc
    b) the wmcalc I obtained from AUR (which already is dead old ;-) works as expected, ie. hovering the calculator moves the kbd focus there, no matter of the focus policy in fluxbox

    So it's not a fluxbox bug and been fixed in wmcalc ages ago ;-)

     

Log in to post a comment.