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

Scrolling doesn't take focus #8180

Open
1 task done
superNWHG opened this issue Oct 19, 2024 · 2 comments
Open
1 task done

Scrolling doesn't take focus #8180

superNWHG opened this issue Oct 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@superNWHG
Copy link

superNWHG commented Oct 19, 2024

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

No

System Info and Version

System/Version info
Hyprland 0.44.0 built from branch main at commit 0e630e9e74ad34683194a07cfe6afe55a2c0685f  (session-lock: reset seat grab on a new session lock (8147)).
Date: Thu Oct 17 22:05:55 2024
Tag: v0.44.0-53-g0e630e9e, commits: 5352
built against aquamarine 0.4.3


flags set:
debug


System Information:
System name: Linux
Node name: Laptop-Nico
Release: 6.11.3-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:02 +0000


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:
  hyprtrails by Vaxry ver 1.0
  hyprwinwrap by Vaxry ver 1.0

======Config-Start======


Config File: /home/nico/.config/hypr/hyprland.conf: Read Succeeded
# Source every file in the config/ directory
source = ~/.config/hypr/config/*


Config File: /home/nico/.config/hypr/config/autostart.conf: Read Succeeded
# Everything to be executed at startup
exec-once = waybar &
exec-once = hyprpaper &
exec-once = xwaylandvideobridge &
exec-once = hyprpm reload &
exec-once = nm-applet &
exec-once = dunst -config ~/.config/dunst/dunstrc &
exec-once = ~/.config/hypr/scripts/startxdhp.sh &
exec-once = udiskie &
exec-once = /usr/lib/polkit-kde-authentication-agent-1 &
exec-once = hypridle &
exec-once = floorp &
exec-once = keepassxc &
exec-once = webcord --ozone-platform=wayland &
exec-once = whatstron &
exec-once = alacritty & alacritty &
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
# exec-once = ~/.config/hypr/scripts/cava.sh &


Config File: /home/nico/.config/hypr/config/binds.conf: Read Succeeded
$mainMod = SUPER

# General keybinds
bind = $mainMod, RETURN, exec, alacritty
bind = $mainMod, Q, killactive, 
bind = $mainMod, M, exit, 
bind = $mainMod, E, exec, thunar
bind = $mainMod, V, togglefloating, 
bind = $mainMod, D, exec, tofi-drun | xargs hyprctl dispatch exec
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, S, togglesplit, # dwindle
bind = $mainMod, X, exec, wlogout
bind = $mainMod, Print, exec, grimblast save area
bind =, Print, exec, grimblast copy area
bind = $mainMod, F, fullscreen
bind = $mainMod, O, exec, hyprctl dispatch fullscreen 1

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Move focus with mainMod + vim keys
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Swap windows with vim keys
bind = $mainMod SHIFT, h, swapwindow, l
bind = $mainMod SHIFT, l, swapwindow, r
bind = $mainMod SHIFT, k, swapwindow, u
bind = $mainMod SHIFT, j, swapwindow, d

# Swap windows with arrow keys
bind = $mainMod SHIFT, left, swapwindow, l
bind = $mainMod SHIFT, right, swapwindow, r
bind = $mainMod SHIFT, up, swapwindow, u
bind = $mainMod SHIFT, down, swapwindow, d

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Keyboard shortcuts
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+
binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl=, XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl play
bindl=, XF86AudioPause, exec, playerctl pause
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous
bindl=, XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
binde=, XF86MonBrightnessUp, exec, brightnessctl set +5%
binde=, XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde=, XF86Search, exec, fuzzel
bindl=, XF86Calculator, exec, speedcrunch


# For screen sharing
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$

# Autoclicker shortcut
bind = $mainMod, ESCAPE, exec, ~/.config/hypr/scripts/autoclicker.sh

# Scratchpad
bind = $mainMod, B, exec, ~/.config/hypr/scripts/scratchpad.sh "Btop"
bind = $mainMod, T, exec, ~/.config/hypr/scripts/scratchpad.sh "ScratchTerm"


Config File: /home/nico/.config/hypr/config/decoration.conf: Read Succeeded
# Window decorations
decoration {
    blur {
        enabled = true
        size = 2
        passes = 3
    }
		inactive_opacity = 0.98
    rounding = 10
    drop_shadow = yes
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

# Window animations
animations {
    enabled = yes

    bezier = myBezier, 0.01, 0.9, 0.1, 1.05
		bezier = cubic-bezier, 0.68, -0.6, 0.32, 1.6

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, myBezier
}


Config File: /home/nico/.config/hypr/config/enviroment-variables.conf: Read Succeeded
# Some enviroment variables
env = XCURSOR_SIZE,24
env = GDK_BACKEND=wayland,x11
env = QT_QPA_PLATFORM="wayland;xcb"
env = SDL_VIDEODRIVER=wayland
env = CLUTTER_BACKEND=wayland
env = XDG_CURRENT_DESKTOP=Hyprland
env = XDG_SESSION_TYPE=wayland
env = XDG_SESSION_DESKTOP=Hyprland
env = QT_AUTO_SCREEN_SCALE_FACTOR=1
env = QT_QPA_PLATFORM=wayland;xcb
env = MOZ_ENABLE_WAYLAND=1
env = SDL_VIDEODRIVER=wayland
env = HYPRCURSOR_THEME,HyprBibataModernClassicSVG
env = XCURSOR_THEME=Bibata-Modern-Classic
env = ELECTRON_OZONE_PLATFORM_HINT=wayland
env = force_integer_tex_nearest=true ./suyu


Config File: /home/nico/.config/hypr/config/general.conf: Read Succeeded
# General settings
general {
    gaps_in = 5
    gaps_out = 20
    border_size = 2
    col.active_border = rgba(17bae1ee) rgba(aae8e8ee) 45deg
    col.inactive_border = rgba(595959aa)

    layout = dwindle
}


Config File: /home/nico/.config/hypr/config/input.conf: Read Succeeded
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

device {
	name = elan2097:00-2575:c300
	enabled = false
}


Config File: /home/nico/.config/hypr/config/layouts.conf: Read Succeeded
dwindle {
    pseudotile = yes
    preserve_split = yes
}

gestures {
    workspace_swipe = off
}


Config File: /home/nico/.config/hypr/config/monitors.conf: Read Succeeded
monitor=,preferred,auto,auto

monitor=eDP-1, 1920x1080@60, 0x0, 1
monitor=HDMI-A-1, 1920x2560@60, 1920x0, 1


Config File: /home/nico/.config/hypr/config/plugins.conf: Read Succeeded
# Plugins
plugin {
    hyprtrails {
      color = rgba(17BAE1ee)
    }
}
plugin {
		hyprwinwrap {
			class = alacritty-bg
		}
}


Config File: /home/nico/.config/hypr/config/rules.conf: Read Succeeded
# Workspace rules
workspace = 1, monitor:HDMI-A-1
workspace = 2, monitor:HDMI-A-1
workspace = 3, monitor:HDMI-A-1
workspace = 4, monitor:HDMI-A-1
workspace = 5, monitor:HDMI-A-1
workspace = 6, monitor:HDMI-A-1
workspace = 7, monitor:HDMI-A-1
workspace = 8, monitor:eDP-1
workspace = 9, monitor:HDMI-A-1
workspace = 10, monitor:eDP-1

# Window rules
windowrulev2= workspace 1, class:^(floorp)$
windowrulev2= workspace 3, class:^(Alacritty)$
windowrulev2= workspace 10, initialTitle:^(Spotify Premium)$
windowrulev2= workspace 9, initialClass:^(WebCord)$
windowrulev2= workspace 8, class:^(org.keepassxc.KeePassXC)$
windowrulev2= workspace 6, initialClass:^(Lxappearance)$
windowrulev2= workspace 6, class:^(blueberry.py)$
windowrulev2= workspace 9, initialClass:^(Whatstron)$
windowrulev2= workspace 4, class:^(thunar)$
windowrulev2= workspace 2, initialClass:^(unityhub)$
windowrulev2= workspace 2, initialClass:^(VSCodium)$
windowrulev2= workspace 2, initialClass:^(com-jetbrains-toolbox-entry-ToolboxEntry)$
windowrulev2= workspace 5, title:Waydroid

windowrulev2= fullscreen, title:Waydroid
windowrulev2= float, class:^(org.speedcrunch.speedcrunch)$

# Scratchpad rules
windowrulev2= float,size 30% 30%,class:(Btop)
windowrulev2= float,size 40% 40%,class:(ScratchTerm)

# Blur window rules
windowrulev2 = opacity 0.95, class:^(floorp)$
windowrulev2 = opacity 0.8, class:^(thunar)$
windowrulev2 = opacity 0.9, class:^(com.obsproject.Studio)$
windowrulev2 = opacity 0.85, class:^(WebCord)$
windowrulev2 = opacity 0.85 , class:^(Whatstron)$
windowrulev2 = opacity 0.85, class:^(org.keepassxc.KeePassXC)$
windowrulev2 = opacity 0.7, initialTitle:^(Spotify Premium)$

# Xwaylandvideobridge rules
windowrulev2 = opacity 0.0 override,initialClass:^(xwaylandvideobridge)$
windowrulev2 = noanim,initialClass:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,initialClass:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,initialClass:^(xwaylandvideobridge)$
windowrulev2 = noblur,initialClass:^(xwaylandvideobridge)$

======Config-End========

Description

When having more then one visible windows in a single workspace open and having the cursor above the non-active window, you can make it active by moving your cursor or clicking with any button. However, when you scroll, it will scroll in the original active window and will not make the window under the cursor active. I would expect it to take focus when scrolling since clicking or moving the cursor will also take focus.

How to reproduce

  1. Have a workspace with more than 1 visible window
  2. Go to another workspace and move your workspace to the position of the unfocused window
  3. Go back to the original workspace
  4. Scroll

Crash reports, logs, images, videos

untitled.mp4
@superNWHG superNWHG added the bug Something isn't working label Oct 19, 2024
@nickodei
Copy link

I can reproduce this behavior on Hyprland 0.44.0 . If this is recognized as a bug, I would then like to work on this issue to familiarize myself with the code-base.

@vaxerski
Copy link
Member

feel free. Probably should be the case but only for focus follows mouse 1

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

3 participants