Menu

#77 window icon

Next Release
closed
None
5
2020-09-19
2020-06-09
rno
No

hi,
a window icon , so it would also be in tasks lists docks or switchers...
a built in data file would do, so no need gfx code, could be changed at compile time.
in my linux distro much programs are having an icon nowadays.

thanks.

Discussion

  • Ralf Hoffmann

    Ralf Hoffmann - 2020-08-02

    Hi,

    the next release will add icons to the X11 window for this purpose.

     
  • rno

    rno - 2020-08-04

    hi,

    great, thanks!

    since I made the message I tried adding some wm icon with X11 on my own with c programs,
    something took me a long time to find:
    _NET_WM_ICON hint require ARGB data with dimensions (unsigned int) icon_with_dims[] {width, height, ARGB, ARGB, ... data}.
    yet as (const byte*):

        XChangeProperty(display,window,InternAtom(display,"_NET_WM_ICON",False),
                XInternAtom(display,"CARDINAL",False),  32,PropModeReplace,
                (const byte*)icon_with_dims,
                icon_bitmap_width*icon_bitmap_height+2*4 );
    

    so some byte swapping required, also some mem used storing the ARGB copy if wanting also keeping the RGBA pic...

    with worker uptnow I'm using 'xseticon' cli program yet transient windows are without icon...

    thanks,

     

    Last edit: rno 2020-08-05
  • rno

    rno - 2020-09-14

    hi,

    so I made an icons set, it contains:

    an svg icon & a few png icons in an icon theme directory structure
    same icons as xpm in pixmaps/
    a small script crafting icons .h includes file with pictures, it's using imagemagick convert so can accept much pictures types.
    a readme.txt describing usage

    thanks

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2020-09-19
    • status: open --> closed
    • assigned_to: Ralf Hoffmann
     

Log in to post a comment.