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
20.94k stars 879 forks source link

movefocus has strange behaviour of changing the layout, sometimes mirroring the window layout #99

Closed japrogramer closed 2 years ago

japrogramer commented 2 years ago

Describe the bug with three windows open and with this bindings

bind=SUPER,H,movefocus,l
bind=SUPER,L,movefocus,r

if I quickly movefocus from left to right, the windows fall out of place and move which causes the layout to move. sometimes that results in the 2 smaller windows moving from the right column to the left column.

Images/videos/anything that would help

Please attach a log (it's in /tmp/hypr/hyprland.log) and, if crashing, a crashdump (coredumpctl, then coredumpctl info )

vaxerski commented 2 years ago

either i cant reproduce or idk what you're talking about

japrogramer commented 2 years ago

https://user-images.githubusercontent.com/1387859/169592149-d8c49755-f130-4277-9d38-09b281553931.mp4

In the video I show the behavior with movefocus

and in the second part of the video I show how it is different from with movewindow

vaxerski commented 2 years ago

config, please, as is mentioned in the issue template.

japrogramer commented 2 years ago
# This is an example Hyprland config file.
# Syntax is the same as in Hypr, but settings might differ.
#
# Refer to the wiki for more information.

monitor=,2560x1600@30,0x0,1
workspace=DP-1,1

input {
    kb_layout=
    kb_variant=
    kb_model=
    kb_options=
    kb_rules=

    follow_mouse=1
}

general {
    max_fps=60 # deprecated, unused
    sensitivity=0.75
    main_mod=SUPER

    gaps_in=5
    gaps_out=20
    border_size=2
    col.active_border=0x66ee1111
    col.inactive_border=0x66333333

    damage_tracking=full # experimental, monitor is 100% fine, but full might have some minor bugs, especially with high blur settings!
}

decoration {
    rounding=10
    blur=1
    blur_size=3 # minimum 1
    blur_passes=1 # minimum 1, more passes = more resource intensive.
    # Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts.
    # if you want heavy blur, you need to up the blur_passes.
    # the more passes, the more you can up the blur_size without noticing artifacts.
}

animations {
    enabled=1
    animation=windows,1,7,default
    animation=borders,1,10,default
    animation=fadein,1,10,default
    animation=workspaces,1,6,default
}

dwindle {
    pseudotile=0 # enable pseudotiling on dwindle
}

# example window rules
# for windows named/classed as abc and xyz
#windowrule=move 69 420,abc
#windowrule=size 420 69,abc
#windowrule=tile,xyz
#windowrule=float,abc
#windowrule=pseudo,abc
#windowrule=monitor 0,xyz

# example binds
bind=SUPER,Q,exec,alacritty
bind=SUPER,C,killactive,
bind=SUPER,M,exec,pkill Hyprland
bind=SUPER,E,exec,dolphin
bind=SUPER,V,togglefloating,
bind=SUPER,R,exec,wofi --show drun -o DP-3
bind=SUPER,P,pseudo,
bind=SUPER,F,fullscreen,
bind=SUPER,H,movefocus,l
bind=SUPERSHIFT,H,movewindow,l
bind=SUPER,J,movefocus,d
bind=SUPERSHIFT,J,movewindow,d
bind=SUPER,K,movefocus,u
bind=SUPERSHIFT,K,movewindow,u
bind=SUPER,L,movefocus,r
bind=SUPERSHIFT,L,movewindow,r

bind=SUPER,left,movefocus,l
bind=SUPER,right,movefocus,r
bind=SUPER,up,movefocus,u
bind=SUPER,down,movefocus,d

bind=SUPER,1,workspace,1
bind=SUPER,2,workspace,2
bind=SUPER,3,workspace,3
bind=SUPER,4,workspace,4
bind=SUPER,5,workspace,5
bind=SUPER,6,workspace,6
bind=SUPER,7,workspace,7
bind=SUPER,8,workspace,8
bind=SUPER,9,workspace,9
bind=SUPER,0,workspace,10

bind=ALT,1,movetoworkspace,1
bind=ALT,2,movetoworkspace,2
bind=ALT,3,movetoworkspace,3
bind=ALT,4,movetoworkspace,4
bind=ALT,5,movetoworkspace,5
bind=ALT,6,movetoworkspace,6
bind=ALT,7,movetoworkspace,7
bind=ALT,8,movetoworkspace,8
bind=ALT,9,movetoworkspace,9
bind=ALT,0,movetoworkspace,10
vaxerski commented 2 years ago

literally impossible it's an issue with movefocus movefocus does not alter the layout at all: 20220520_22h21m19s_grim

Either you're pressing SHIFT by accident while spamming the keys, or you're pressing the main_mod+mouse, somehow.

japrogramer commented 2 years ago

I'm not accidentally pressing Shift, will update soon with new video

japrogramer commented 2 years ago

You were right it was mod+mousepad, I was accidental resting my hand in the mousepad and then that registered as clicks which I guess causes the focused window to move along with the layout.