4 ms·
I don't develop for GNUstep anymore, but I remember making scalable dock apps possible some decades ago. You need to configure the size of icon windows in win
by ratmice 3y ago
I don't develop for GNUstep anymore, but I remember making scalable dock apps possible some decades ago.
You need to configure the size of icon windows in windowmaker WPrefs, the app then needs then to query the [[[NSApp iconWindow] contentView] bounds] that it was created with. There are almost certainly still some dockapps in existence that don't do that and just use hard coded sizes though. I know that the clock app AClock, implements it correctly.
- zare_st 3y agoMost of the dockapps I used do not use GNUstep. I peeked into two now, one is libdockapp based, the other has internal code, both of them assume a default size, because it's not trivial for them to query the configuration in GNUstep format without the libraries. I'll try messing around Windowmaker in the next few days, this discussion fueled some old interest.
- ratmice 3y agoIt is easier to just use `XGetIconSizes` on the `DefaultRootWindow` than try to pull it out of configs or doing some kind of plist parsing. Here is the function GNUstep uses... It should not be difficult to pull the relevant stuff out for use in C. https://github.com/gnustep/libs-back/blob/master/Source/x11/XGServerWindow.m#L4729-L4760 https://github.com/gnustep/libs-back/blob/master/Source/x11/... (-iconSize)