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

No window gets focused under certain conditions when in Sloppy mode #1145

Open
alteredoxide opened this issue Sep 28, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@alteredoxide
Copy link

Describe the bug

This seems to be related to an already closed bug: #564 -- When using Sloppy behavior with sloppy_mouse_follows_focus = true, it seems that any time you switch to different tags while the pointer/cursor is not positioned over a window on the destination tag, no window will gain focus, and using keybindings to focus different windows will not work until you put the cursor over a window.

Expected behavior (optional)

When windows are moved to new tags, or I switch to a different tag, there will be a window on the currently active tag that gains focus, unless of course there are no windows on the currently active tag.

Steps to reproduce (optional)

  1. Ensure LeftWM is configured with focus_behavior: Sloppy and sloppy_mouse_follow_focus: true.
  2. Start on any tag (doesn't matter if a window is open), and have a second tag not visible that has at least one window open.
  3. Move your mouse pointer so that it is positioned over the menu bar or on the edge of the screen, or anywhere such that the pointer will not be positioned over a window when you switch to the second tag.
  4. Switch to your second tag.
  5. Notice that no window on the destination tag is focused, and you cannot use keybindings to focus different windows.

Relevant log output (optional)

No response

OS / Distro

Linux 6.4.12-arch1-1

Additional System Information (optional)

No response

LeftWM Check

:: LeftWM version: 0.4.2
:: LeftWM git hash: 357aea5
:: Enabled features:  journald-log lefthk
:: Checking feature dependencies . . .
    -> journald-log OK
    -> lefthk OK
:: Checking for leftwm binaries . . .
    -> Binaries OK 
:: Loading configuration . . .
    -> Configuration loaded OK 
:: Checking keybinds . . .
    -> All keybinds OK
:: Checking environment . . .
    -> Environment OK 
:: Checking theme . . .
    -> Theme OK
@alteredoxide alteredoxide added the bug Something isn't working label Sep 28, 2023
@f0ff886f
Copy link

I think this is similar in spirit to #1108. The focus behaviour follows the mouse a little bit too well :D

@alteredoxide
Copy link
Author

@f0ff886f it does seem like that issue is resulting from the same bug. Thanks for referencing it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants