• Martin Flöser's avatar
    [server] Pass keyboard focus to child surface on pointer click · 55f3a295
    Martin Flöser authored
    If the focused pointer and keyboard surface is the same we use pointer
    clicks as a hint to which child surface should have keyboard focus.
    
    Keyboard focus handling for sub surfaces is rather limited overall.
    We just don't have a good model on how to determine which child surface
    should get the keyboard focus. When passing focus to a surface there
    is no way to know which of the sub-surfaces should get the focus.
    Ideally the client should handle this, but that's just not the case.
    
    The best we have is a reference through the pointer. But that's of
    course also limited. Keyboard focus passed to the surface for another
    reason (Alt+Tab) cannot select the proper sub-surface without interaction
    from another input device.
    
    Reviewers: #plasma
    
    Subscribers: plasma-devel
    
    Projects: #plasma
    
    Differential Revision: https://phabricator.kde.org/D1330
    55f3a295
keyboard_interface.cpp 5.92 KB