exebook
exebook

Reputation: 33960

How to load XPM into XWMHints icon_pixmap property?

Is there a simple ready solution to just #include <icon.xpm> and get it as your app icon?

Upvotes: 0

Views: 289

Answers (1)

Andrey Sidorov
Andrey Sidorov

Reputation: 25466

See example code answers to this question - you need to upload rgba data to server-side pixmap and assign _NET_WM_ICON value to pixmap id.

Unfortunately this won't work for ubuntu/unity - there you set icon in the desktop file and associate your window with desktop file using by setting _NET_WM_DESKTOP_FILE property ( see my related answer )

Upvotes: 1

Related Questions