Skip to content
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

Partial loss of mouse/keyboard control when closing Firefox Picture-in-Picture #998

Open
podiki opened this issue Jul 24, 2022 · 2 comments

Comments

@podiki
Copy link

podiki commented Jul 24, 2022

I'm not sure what could be causing this, but the ingredients seem to be: Firefox Picture-in-Picture window (e.g. pop-out a YouTube video), float-this and toggle-always-show, and :click for the mouse policy. Here is the reproducer I narrowed down as much as I could:

config:

(in-package :stumpwm)
(setf *mouse-focus-policy* :click)

Procedure:

  1. Start stumpwm (I'm just running the binary of latest release version)
  2. Have at least 2 groups (so with the plain config above C-t g c to create a new one)
  3. Open Firefox (I used C-t !)
  4. Find a YouTube video and play
  5. Press the "pop-out" button to have the video in a new window
  6. float-this for this window, resize (probably not necessary)
  7. toggle-always-show on this window
  8. Verify this video window is in the other group and switch back (to check)
  9. Press the grey 'X' button on the pop-out player
  10. Observe that Firefox doesn't respond to mouse events, but does to keyboard. Also seems like stumpwm doesn't respond to some keys; perhaps other weirdnes
  11. If you float-this the Firefox window, it will behave normally

So, seems like mouse/keyboard focus or control, along with display refreshes (to Firefox) gets wonky. Something about the mouse policy and a floating window? Either way, this puts stumpwm in a weird state.

@ghost-of-freedom
Copy link
Contributor

i remember that either toggle-always-show or toggle-always-on-top was so buggy for me it was pretty much unusable. does this happen if you skip toggling toggle-always-show on the window?

@podiki
Copy link
Author

podiki commented Jul 28, 2022

In my test right now, it did not happen without toggle-always-show. So I think it is a weird combination of that, perhaps floating, and maybe the type of window Firefox's Picture-in-Picture is?

I'll have to try with other types of windows and see what the factors are we can eliminate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants