Skip to content

[Bug]: module/i3 not updating workspace after update from i3-gaps to i3-wm 4.22 #2888

@tmadeira

Description

@tmadeira

Checklist

  • I have read the appropriate section in the contributing guidelines
  • I believe this issue is a problem with polybar itself and not a misconfiguration on my part
  • I have searched for other open and closed issues that may have already reported this problem
  • I have checked the known issues page for this problem.
  • I have followed the debugging guide to narrow down the problem to a minimal config.

Steps to reproduce

  1. Switch between i3 workspaces with open windows.
  2. The selected workspace won't update in polybar.

Minimal config

[bar/default]
modules-left = i3

Polybar log

polybar|warn:  module/i3: Attempting to reconnect socket (reason: LargestInt out of UInt range)
polybar|info:  module/i3: Reconnecting socket succeeded

Expected behavior

Selected workspace should be updated in polybar.

Actual behavior

Selected workspace is not updating.

Window Manager and Version

i3 version 4.22 (2023-01-02)

Linux Distribution

Arch (Linux 6.1.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 31 Dec 2022 17:40:35 +0000 x86_64 GNU/Linux)

Polybar version

polybar 3.6.3-86-gedf37385

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override  -Wall -Wextra -Wpedantic -Wdeprecated-copy-dtor -Wsuggest-override

Additional Context / Screenshots

I'm using polybar-git from AUR: https://aur.archlinux.org/packages/polybar-git

Googling for this issue I found other people reporting it on Reddit: https://www.reddit.com/r/i3wm/comments/101wp5q/polybar_workspace_module_broken_after_move_from/

The issue is probably in https://github.com/polybar/i3ipcpp, but there's no issue tracker there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions