mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
Don't shrink icons in switchpanel.
Icons in the switchpanel are constrained to the value of the IconSize preference but the grid in which they are arranged is fixed at 64 pixels. If IconSize is less than 64x64 the panel will show smaller icons with a wide spacing, which looks pretty stupid. Fix it by forcing the switchpanel to attempt to load images at the size it's going to use. The icon it actually gets may of course still be smaller.
This commit is contained in:
committed by
Carlos R. Mafra
parent
854ae58305
commit
07a0639c93
@@ -177,7 +177,7 @@ static void addIconForWindow(WSwitchPanel * panel, WMWidget * parent, WWindow *
|
||||
// it's very likely that most of them are instances of the same thing,
|
||||
// so caching them should get performance acceptable in these cases.
|
||||
if (!image)
|
||||
image = wDefaultGetImage(panel->scr, wwin->wm_instance, wwin->wm_class);
|
||||
image = wDefaultGetImage(panel->scr, wwin->wm_instance, wwin->wm_class, ICON_TILE_SIZE);
|
||||
|
||||
if (!image && !panel->defIcon) {
|
||||
char *file = wDefaultGetIconFile(panel->scr, NULL, NULL, False);
|
||||
|
||||
Reference in New Issue
Block a user