#6392·i3

occasionally i3 refuses to let me focus / click in browser windows

Author: oddlamaCreated Feb 11, 2025Updated Sep 25, 2026
Labelsbugmissing-logwaiting4.24

Welcome

  • Yes, I'm using the latest major release or the current development version. These are the only supported versions.
  • Yes, I've searched similar issues and discussions on GitHub and didn't find any.

Current Behavior

Randomly when I open firefox, i3 decides not to pass any mouse click or hover events to my browser windows. I can focus the window with keybinds and can use the application just fine, just no mouse hover or click events seem to reach the application. Clicking on the window does not even focus it in i3, the border stays gray.

I have a setup with two monitors and usually put one firefox window on each monitor on its own workspace. Most often only one of the two windows locks up. By hiding the working window on the one montior, the other windows becomes responsive again. Sometimes this fixes both, sometimes I can only use one windows at a time, sometimes this doesn't fix anything. I have tried to understand this problem for the last few weeks, but I cannot say what causes it. There are never any logs writtenl around the time the problem occurs. I have no idea how to debug this.

My terminal (kitty) is unaffected, as are many other applications. If firefox locks up, steam usually is also affected as are electron applications like Discord. Sometimes they do lock up together with the browser, sometimes not. This happens once every few days and a restart of i3 solves the problem, but it can randomly re-appear, I just mainly notice it when opening firefox.

I remember that this was not the case 1 year ago, but I started noticing it around end of 2024. I have tried many other X11 compositors on the same system and none of them exhibit any behavior like this, wayland (sway, hyprland) is also unaffected. The only logical conclusion to me is that i3 has had a regression in the past year that broke the mouse focus.

Expected Behavior

Focus should always work.

Reproduction Instructions

For me it happens every few days. There are no special conditions. I've had this issue happen just seconds after starting i3 up to hours after starting it before it appeared, if it appears at all.

i3 version

Binary i3 version:  4.24 (2024-11-06) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.24 (2024-11-06) (pid 12833)
Loaded i3 config:
  /home/myuser/.config/i3/config (main) (last modified: Thu Jan  1 01:00:01 1970, 1739313716 seconds ago)

The i3 binary you just called: /nix/store/xyd2g7hwznxvzcnpcm4zjr9czvjw9052-i3-4.24/bin/i3
The i3 binary you are running: i3

Config file

font pango:monospace 8.000000
floating_modifier Mod4
default_border pixel 2
default_floating_border normal 2
hide_edge_borders none
focus_wrapping yes
focus_follows_mouse no
focus_on_window_activation smart
mouse_warping none
workspace_layout default
workspace_auto_back_and_forth no
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff

bindsym Menu exec /nix/store/35xpy91irwgcyjvrpnhks4v6rks8mc3r-dmenu-5.3/bin/dmenu_run
bindsym Mod4+1 workspace number 1
bindsym Mod4+2 workspace number 2
bindsym Mod4+3 workspace number 3
bindsym Mod4+4 workspace number 4
bindsym Mod4+5 workspace number 5
bindsym Mod4+6 workspace number 6
bindsym Mod4+7 workspace number 7
bindsym Mod4+8 workspace number 8
bindsym Mod4+9 workspace number 9
bindsym Mod4+Comma workspace prev
bindsym Mod4+Period workspace next
bindsym Mod4+Return fullscreen toggle
bindsym Mod4+Shift+1 move container to workspace number 1
bindsym Mod4+Shift+2 move container to workspace number 2
bindsym Mod4+Shift+3 move container to workspace number 3
bindsym Mod4+Shift+4 move container to workspace number 4
bindsym Mod4+Shift+5 move container to workspace number 5
bindsym Mod4+Shift+6 move container to workspace number 6
bindsym Mod4+Shift+7 move container to workspace number 7
bindsym Mod4+Shift+8 move container to workspace number 8
bindsym Mod4+Shift+9 move container to workspace number 9
bindsym Mod4+Shift+Comma move container to workspace prev
bindsym Mod4+Shift+Down move down
bindsym Mod4+Shift+Left move left
bindsym Mod4+Shift+Period move container to workspace next
bindsym Mod4+Shift+Right move right
bindsym Mod4+Shift+Up move up
bindsym Mod4+Shift+f focus mode_toggle
bindsym Mod4+Shift+r reload
bindsym Mod4+a focus parent
bindsym Mod4+asciicircum exec /nix/store/35xpy91irwgcyjvrpnhks4v6rks8mc3r-dmenu-5.3/bin/dmenu_run
bindsym Mod4+b exec firefox
bindsym Mod4+f floating toggle
bindsym Mod4+q kill
bindsym Mod4+r mode resize
bindsym Mod4+s splitv
bindsym Mod4+space layout toggle tabbed splitv splith
bindsym Mod4+t exec kitty
bindsym Mod4+v splith

mode "resize" {
  bindsym Down resize grow height 10 px or 10 ppt
  bindsym Escape mode default
  bindsym Left resize shrink width 10 px or 10 ppt
  bindsym Return mode default
  bindsym Right resize grow width 10 px or 10 ppt
  bindsym Up resize shrink height 10 px or 10 ppt
}

assign [class="^firefox$"] 1
assign [class="^bottles$"] 5
assign [class="^steam$"] 5
assign [class="^prismlauncher$"] 5
assign [class="^obsidian$"] 7
assign [class="^discord$"] 7
assign [class="^Signal$"] 7
assign [class="^TelegramDesktop$"] 7
assign [class="^Spotify$"] 8
bar {
  font pango:monospace 8.000000
  mode dock
  hidden_state hide
  position bottom
  status_command /nix/store/nxl2wa77afx41p75zjmfm8nribjvis1q-i3status-2.15/bin/i3status
  i3bar_command /nix/store/xyd2g7hwznxvzcnpcm4zjr9czvjw9052-i3-4.24/bin/i3bar
  workspace_buttons yes
  strip_workspace_numbers no
  tray_output primary
  colors {
    background #000000
    statusline #ffffff
    separator #666666
    focused_workspace #4c7899 #285577 #ffffff
    active_workspace #333333 #5f676a #ffffff
    inactive_workspace #333333 #222222 #888888
    urgent_workspace #2f343a #900000 #ffffff
    binding_mode #2f343a #900000 #ffffff
  }
}

for_window [class="^Pavucontrol$"] floating enable
workspace "1" output "DP-2"
workspace "2" output "DP-2"
workspace "3" output "DP-2"
workspace "4" output "DP-2"
workspace "5" output "DP-2"
workspace "6" output "DP-2"
workspace "7" output "DP-4"
workspace "8" output "DP-4"
workspace "9" output "DP-4"

Linux distribution & Version

NixOS 25.05 (unstable)

Are you using a compositor?

I am sure I don't run any compositor

Logfile

No response