hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.42k stars 898 forks source link

Alterzorder, top does nothing #5490

Open Kommynct opened 7 months ago

Kommynct commented 7 months ago

Discussed in https://github.com/hyprwm/Hyprland/discussions/5451

Originally posted by **mobsenpai** April 6, 2024 Let's say I have to floating windows like in the pic attached and I want that the window I am focusing using movefocus from keyboard should come to top i.e gets raised. How will I do that? Currently I have to click on the bottom window to make it come to top. > attached pic ![image](https://github.com/hyprwm/Hyprland/assets/92603465/1d0b1ae0-ec1c-4e50-80cd-f1dc6f0a1e72) > hyprland.conf on pastebin https://pastebin.com/GkQYVVMV > NOTE: this is nixos's output file so please ignore nix store links. It just targets to an executable.
vaxerski commented 7 months ago

I assume bringactivetotop also is broken?

Kommynct commented 7 months ago

Oddly enough it is not.

vaxerski commented 7 months ago

looking at the code, have you tried mod,key,alterzorder,current,top?

Kommynct commented 6 months ago

That also does nothing.

tuvin5f01 commented 5 months ago

It might be because of follow_mouse = 1 which focus follows mouse movement, I personally use follow_mouse = 2

Kommynct commented 5 months ago

That doesn't explain why bringactivetotop works

tuvin5f01 commented 5 months ago

well, lets say window1 is on top of window2, when you use movefocus to window2, your cursor will be placed at the center of window2.

If that center is overlapped by window1, since follow_mouse = 1 the cursor immediately move focus back to window1, therefore alterzorder doesn't work.

edit) I misread your comment, ignore me