From kwin Sun Apr 28 08:13:00 2019 From: Alexander Semke Date: Sun, 28 Apr 2019 08:13:00 +0000 To: kwin Subject: Re: Aw: Re: setWindowIcon for QDialog Message-Id: <1844626.rkSlAHTHfH () linux-2rd5> X-MARC-Message: https://marc.info/?l=kwin&m=155643930204437 Hi Martin, Hi Friedrich, any thoughts on the behavior in openbox vs. kwin described below? Regards, Alexander Am Donnerstag, 7. M=C3=A4rz 2019, 22:44:58 CEST schrieb Alexander Semke: > On Donnerstag, 7. M=C3=A4rz 2019 21:02:49 CET Martin Fl=C3=B6ser wrote: > > [...] > > Not in this case as the window is missing the icon property as can be > > seen in the xprop output. > >=20 > > But apart from that: yes if the desktop file is specified, the icon is > > preferred over the custom icon. But in this specific case it's not the > > reason. >=20 > I checked it again with another window manager. Again, it's > https://cgit.kde.org/labplot.git/tree/src/kdefrontend/datasources/ > DatabaseManagerDialog.cpp#n48 >=20 > with the icon "network-server-database": >=20 > alex@notebook:/usr/share/icons/breeze>find . -name network-server-databas= e* > ./places/16/network-server-database.svg > ./places/22/network-server-database.svg >=20 > xporp for this dialog is: >=20 > _NET_WM_ICON_NAME(UTF8_STRING) =3D > _KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) =3D "org.kde.labplot2" > _KDE_NET_WM_COLOR_SCHEME(STRING) =3D "/usr/share/color-schemes/ > BreezeHighContrast.colors" > XdndAware(ATOM) =3D BITMAP > _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) =3D 28374773 > WM_NAME(STRING) =3D "SQL Database Connections" > _NET_WM_NAME(UTF8_STRING) =3D "SQL Database Connections =E2=80=94 labplot= 2" > _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) =3D 0x3, 0x26, 0x1e, 0x0, 0x0 > _NET_WM_WINDOW_TYPE(ATOM) =3D _NET_WM_WINDOW_TYPE_DIALOG, > _NET_WM_WINDOW_TYPE_NORMAL > _XEMBED_INFO(_XEMBED_INFO) =3D 0x0, 0x1 > WM_CLIENT_LEADER(WINDOW): window id # 0x8400008 > WM_HINTS(WM_HINTS): > Client accepts input or input focus: True > window id # of group leader: 0x8400008 > WM_CLIENT_MACHINE(STRING) =3D "notebook" > _NET_WM_PID(CARDINAL) =3D 16708 > _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) =3D 138412230 > WM_CLASS(STRING) =3D "labplot2", "labplot2" > WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, > _NET_WM_PING, _NET_WM_SYNC_REQUEST, _NET_WM_CONTEXT_HELP > WM_NORMAL_HINTS(WM_SIZE_HINTS): > user specified location: 764, 306 > user specified size: 1012 by 726 > program specified minimum size: 553 by 596 > window gravity: Static >=20 >=20 > The icon "network-server-database" is not shown in the window title bar. > Killing kwin, starting openbox -> the proper icon is shown. Killing openb= ox, > starting kwin_x11 -> application's default icon is shown. I don't know how > the window managers are supposed to do the job here, but somehow openbox > manages to show the proper icon despite the empty string > _NET_WM_ICON_NAME(UTF8_STRING)...