New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window focus issue #3267

Open
raffaeleflorio opened this Issue Oct 31, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@raffaeleflorio

raffaeleflorio commented Oct 31, 2017

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:

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Nov 1, 2017

Member

This sounds like a regression of #738. It may be related to #1455.

Member

andrewdavidwong commented Nov 1, 2017

This sounds like a regression of #738. It may be related to #1455.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment