Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-07-18 10:19:58

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Qt XpmCreateDataFromPixmap failing on Xfce?

Coming from https://github.com/user-none/KDocker/is … 2225953166 ...
What is failing on Xfce to extract an icon of an application? Is there something missing on xfwm, worth a bug report?


Gentoo-Linux

Offline

#2 2024-07-18 11:03:37

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 459

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

I doubt anyone will look at an issue related to using a QT/KDE application since Xfce is base on GTK. I wouldn't think the time and resources would allow for it.


Siduction
Debian Sid
Xfce 4.18

Offline

#3 2024-07-18 12:32:45

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

I don't agree, it's not just a 3rd party app, it's about the Qt-Toolkit. It's not unusual to use Qt application on Xfce.
Sure it might be that the application itself is doing something wrong, but it looks like the Qt library fails here.

https://man.archlinux.org/man/extra/lib … ixmap.3.en
libxpm is from Xorg, and if Xfce doesn't implement the standard, I guess it would be worth a bug report?


Gentoo-Linux

Offline

#4 2024-07-18 13:10:11

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 459

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

I thought you meant a bug report to the Xfce devs? Again, I'm sure they have no interest in fixing QT apps. You may want to ask the QT folks. You may be missing some library to allow it to work under GTK. I can't help with that one as I avoid QT as much as possible to avoid look and feel issues in Xfce.


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2024-07-19 10:49:05

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

Eventhough I prefer Gtk apps over KDE apps and Qt, there are still a lot of Qt apps that don't have an alternative, so no reason to refuse them just because of some different toolkit or look-like...
Anyway I still think it's an Xfce bug so I filed https://gitlab.xfce.org/xfce/xfwm4/-/issues/800


Gentoo-Linux

Offline

#6 2024-07-19 12:33:21

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

It's not an Xfwm issue.
Kdocker doesn't handle new applications which adhere to the newer _NET_WM_ICON standards.
Some older applications or simpler ones may set their icon using WM hints.
Many modern applications set their icons using the _NET_WM_ICON property.
This property can contain multiple icons of different sizes, allowing you to choose the best size for your needs.
I already implemented this new method yesterday in Kdocker and sent a pull request.
Also removed XpmCreateDataFromPixmap and implemented a method to retrieve an icon from wm hints with pure Xlib.
https://github.com/Misko-2083/KDocker/tree/patch-1


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

#7 2024-08-14 05:41:52

Mo_B
Member
From: Germany
Registered: 2016-03-04
Posts: 55

Re: Qt XpmCreateDataFromPixmap failing on Xfce?

Thank you very much for investigating and efforts...


Gentoo-Linux

Offline

Board footer

Powered by FluxBB