mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
apercu: Make preview size a configuration option
Since the resolution of the Retina display tends to make everything small, the default apercu preview size (twice the icon size) couldn't be used to distinguish the window contents without tiring too much my eyes. Therefore, let's make the apercu size a configurable option. You can set it through the ApercuSize variable with $ wdwrite WindowMaker ApercuSize 4 in multiples of the icon size (in this case the apercu size will be four times the icon size). The default size remains 2 (twice the icon size).
This commit is contained in:
@@ -423,8 +423,8 @@ static void showApercu(WScreen *scr, int x, int y, int height, int width, char *
|
||||
}
|
||||
|
||||
XCopyArea(dpy, apercu, pixmap, scr->draw_gc,
|
||||
0, 0, (wPreferences.icon_size - 1 - APERCU_BORDER) * 2,
|
||||
(wPreferences.icon_size - 1 - APERCU_BORDER) * 2,
|
||||
0, 0, (wPreferences.icon_size - 1 - APERCU_BORDER) * wPreferences.apercu_size,
|
||||
(wPreferences.icon_size - 1 - APERCU_BORDER) * wPreferences.apercu_size,
|
||||
APERCU_BORDER, APERCU_BORDER + titleHeight);
|
||||
|
||||
#ifdef SHAPED_BALLOON
|
||||
@@ -460,7 +460,7 @@ static void showBalloon(WScreen * scr)
|
||||
|
||||
if (wPreferences.miniwin_apercu_balloon && scr->balloon->apercu != None)
|
||||
/* used to display either the apercu alone or the apercu and the title */
|
||||
showApercu(scr, x, y, (wPreferences.icon_size - 1) * 2, (wPreferences.icon_size - 1) * 2,
|
||||
showApercu(scr, x, y, (wPreferences.icon_size - 1) * wPreferences.apercu_size, (wPreferences.icon_size - 1) * wPreferences.apercu_size,
|
||||
scr->balloon->text, scr->balloon->apercu);
|
||||
else
|
||||
showText(scr, x, y, scr->balloon->h, w, scr->balloon->text);
|
||||
|
||||
Reference in New Issue
Block a user