Skip to content

window focus issue #3267

Closed as not planned
QubesOS/qubes-gui-agent-linux
#171
Closed as not planned
@raffaeleflorio

Description

@raffaeleflorio

Qubes OS version:

R3.2

Affected TemplateVMs:

fedora-25


Steps to reproduce the behavior:

Every program should be opened in the same qube.

A real world effect is reached in this way:

  1. Open two terminals.
  2. Hook one terminal to the left, and one to the right. They should be on the same workspace only for comfort.
  3. Go to another workspace.
  4. Open some webpage and maximize it.
  5. Remember a link's position.
  6. Focus the terminal that doesn't cover the link position.
  7. Focus the browser.
  8. Go to the terminal's workspace.
  9. Click on link's position in the terminal that covers it.
  10. In the webpage the link is clicked.

UPDATE 1
With xev:

  1. Open two terminals.
  2. Hook one terminal to the left, and one to the right. They should be on the same workspace only for comfort.
  3. Open xev with one terminal.
  4. Move xev in another workspace.
  5. Maximize xev.
  6. Move to the terminal's workspace.
  7. Move the mouse on the terminals.
  8. Xev receives input.

UPDATE 2
Stolen keyboard input:

  1. Open two terminals.
  2. Hook one terminal to the left, and one to the right. They should be on the same workspace only for comfort.
  3. Open gnome-terminal (however it's not related to gnome-terminal) and echo an URL. Remember URL position.
  4. Move gnome-terminal to another workspace.
  5. Move to the two terminals workspace.
  6. Focus the terminal that doesn't cover the URL (the right one, if ltr).
  7. Focus gnome-terminal.
  8. Move to the two terminals workspace.
  9. CTRL+CLICK on the URL position on the unfocused terminal.
  10. The URL is opened.

UPDATE 3
Stolen keyboard input can be reproduced also with browser (e.g. CTRL+CLICK on a link).

Actually a previous focused program (like xev or the browser) receive input iff an unfocused window and the former overlap. Furthermore input is stolen until a click happens on the unfocused window.

For example, in the first case, if the browser and the unfocused terminal overlap, the click on the terminal is stolen by the browser. After that the browser cannot steal more.

Expected behavior:

Unfocused window doesn't have to get input.

Actual behavior:

Unfocused window get input.

General notes:

Thanks to secure gui, It affects only programs opened in the same VM.
However it isn't related to any particular window or qube.

This issue isn't related to any particular windows order.

UPDATE 4
I think that it's related to Xorg


Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: gui-virtualizationThis issue pertains to GUI virtualization in Qubes OS.P: majorPriority: major. Between "default" and "critical" in severity.affects-4.1This issue affects Qubes OS 4.1.diagnosedTechnical diagnosis of this issue has been performed.eol-4.1This issue has been closed because Qubes OS 4.1 has reached end of life (EOL).fixed-by-waylandThis issue would not arise if Qubes OS were using Wayland instead of X11.pr submittedA pull request has been submitted for this issue.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions