i3 / i3

A tiling window manager for X11

Home Page:https://i3wm.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emacs icon not showing in i3wm title bar when using emacsclient

BrunoTeixeira1996 opened this issue · comments

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

Currently I am using emacsclient to open a faster emacs window by using an alias (alias e="emacsclient -n -c"). This connects to the emacs daemon.

There's an emacs window that open ups however without any icon

image

In my i3wm config file I have the proper window icon setup (for_window [all] title_window_icon padding 3px)

Expected Behavior

The expected behavior would be to use the same setup and i3wm knows where is the emacs icon.

Reproduction Instructions

Start emacs daemon (emacs --daemon) and then emacsclient (emacsclient -n -c) and verify that there's no icon in the title when using for_window [all] title_window_icon padding 3px in i3wm config file.

i3 version

Binary i3 version:  4.22 (2023-01-02) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.22 (2023-01-02) (pid 3372)
Loaded i3 config:
  /home/brun0/.config/i3/config (main) (last modified: Thu 25 Apr 2024 03:10:50 PM WEST, 750 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

Config file

# Title window with icon
for_window [all] title_window_icon padding 3px

Linux distribution & Version

Debian 12

Are you using a compositor?

I don't know

Logfile

No response

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

Sorry, we can only support the latest major version. Please upgrade from 4.22 to 4.23, verify the bug still exists, and re-open this issue.

@stapelberg or @Airblader sorry for ping but the bot closed the issue for some reason!
Can anyone help in this please? Thanks

The reason is that you are not using the latest i3 version.

If you run xprop _NET_WM_ICON and click on the window, does it return something?

The reason is that you are not using the latest i3 version.

If you run xprop _NET_WM_ICON and click on the window, does it return something?

This is the result

$ xprop _NET_WM_ICON
_NET_WM_ICON:  not found.

Since I am using Debian 12 the version of i3wm is still Package: i3-wm (4.22-2)

I am using the same config for i3 and emacs in another laptop and that works just fine, both with the same version as well.

_NET_WM_ICON: not found.

Then nothing much to be done here really, this window doesn't have an icon.

On my machine, using Emacs (with or without emacsclient) works fine and does show the icon in i3.

I think you’ll need to do some more troubleshooting to narrow down the problem. Does it also happen under a separate user account on the same machine? If yes, it sounds config-related. If no, maybe it’s version-related. Try using a newer or older Emacs, or similar.

On my machine, using Emacs (with or without emacsclient) works fine and does show the icon in i3.

I think you’ll need to do some more troubleshooting to narrow down the problem. Does it also happen under a separate user account on the same machine? If yes, it sounds config-related. If no, maybe it’s version-related. Try using a newer or older Emacs, or similar.

Ill try that, in the mean time can you tell me what version of emacs and i3wm are you running? Thanks in avance.

When you say config related you mean about i3wm or emacs?

I use Emacs 29.3 and i3 v4.23, both of which are the latest respective versions.

Config can mean anything, even software other than i3 or Emacs. It’s really best to just try with a separate account.

I use Emacs 29.3 and i3 v4.23, both of which are the latest respective versions.

Config can mean anything, even software other than i3 or Emacs. It’s really best to just try with a separate account.

So i've fixed this by using debian backports and by installing Emacs 29.2 with the same config so maybe the problem here was realy emacs config! Thanks