Keyboard events being sent to null

Bug #1590060 reported by Gerry Boland
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtmir (Ubuntu)
Fix Released
Medium
Marco Trevisan (Treviño)

Bug Description

In QtMir, we decide what window a key event goes to with the following:

    virtual QWindow* QtWindowSystem::focusedWindow() override
    {
        return QGuiApplication::focusWindow();
    }

Trevinho is launching unity8 inside mir_demo_server on a VT (from Unity7) and finding that key events are not working - debugging we saw that focusedWindow() is null. Need to figure out what went wrong. Steps to repro are coming below

Related branches

Gerry Boland (gerboland)
Changed in qtmir:
assignee: nobody → Daniel d'Andrada (dandrader)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

This is a laptop with touch-screen. Same seems to happen when mir_demo_server (or unity8 itself) is launched in X (using mir on X), to get this I:

sudo mir_demo_server --arw-file --file /tmp/mir_socket --vt 8
initctl set-env -g MIR_SOCKET=/tmp/mir_socket
initctl set-env -g QT_QPA_PLATFORM=mirserver
start unity8

If I do the same by launching the same unity8 version inside a LXC container, I'm instead getting something else:
 - Touchscreen events work
 - Keyboard works
 - Mouse pointer events are recorded (according to logs) but NOT delivered.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in qtmir:
status: New → In Progress
importance: Undecided → Medium
assignee: Daniel d'Andrada (dandrader) → Marco Trevisan (Treviño) (3v1n0)
Gerry Boland (gerboland)
Changed in qtmir:
status: In Progress → Fix Released
Michał Sawicz (saviq)
affects: qtmir → qtmir (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.