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

Not raising windows? (Qtile) #154

Closed
AsharAlvany opened this issue Jan 27, 2024 · 7 comments
Closed

Not raising windows? (Qtile) #154

AsharAlvany opened this issue Jan 27, 2024 · 7 comments

Comments

@AsharAlvany
Copy link

OS: Arch
WM: Qtile

Expected Behavior: using alttab to switch to a window below should focus and raise
Behavior Experienced: using alttab to switch to a window below focuses, but does not raise above

Current Work-Around: Use alttab to focus (UI and logic are amazing) and have another bound key (alt-q) to raise the newly focused window (lazy.window.bring_to_front()).

(Thank you)

2024-01-27.03-53-59.mp4
@sagb
Copy link
Owner

sagb commented Jan 27, 2024

I can't arrange the stacking in qtile at all. Tried to switch between all possible layouts (below), but none of them arranged windows like in your movie clip. What configuration if required to reproduce your setup?

layouts = [
layout.Columns(border_focus_stack=['#d75f5f', '#8f3d3d'], border_width=4),
layout.Max(),
# Try more layouts by unleashing below layouts.
layout.Stack(num_stacks=2),
layout.Bsp(),
layout.Matrix(),
layout.MonadTall(),
layout.MonadWide(),
layout.RatioTile(),
layout.Tile(),
layout.TreeTab(),
layout.VerticalTile(),
layout.Zoomy(),
]

@sagb
Copy link
Owner

sagb commented Jan 27, 2024

To clarify: I see stacked windows, but not "floating free", like in your clip. They sit maximized in their TILES (position and size of tiles depends on layout), probably behind each other. Alttab works with any predefined layout: it gives focus and raises window.
What I'm missing?

@AsharAlvany
Copy link
Author

I apologize, I should have included that initially. The layout is layout.Floating(), then the window is manually moved and resized using my cursor. I suppose it wouldn't be considered a predefined layout? Is there a way to call a function after the completion of the focus switch in alttab? I could modify it to call Sort of like a hook? Thank you again, sagb.

@elParaguayo
Copy link

Hi, qtile developer here.

Thanks for alerting me to this. I've posted a fix here: qtile/qtile#4671 would be great if someone could test and see if it works.

@sagb
Copy link
Owner

sagb commented Jan 28, 2024

It works for me.

@elParaguayo
Copy link

Thanks. I've merged that commit.

@AsharAlvany
Copy link
Author

It works like a charm! Thank you both, very much!

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

No branches or pull requests

3 participants