1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Make window border size configurable.

Use the new preference FrameBorderWidth to configure the width of frame
window borders.
This commit is contained in:
Iain Patterson
2013-03-26 07:01:08 +00:00
committed by Carlos R. Mafra
parent dee30d06ac
commit 2affd6d484
13 changed files with 44 additions and 33 deletions

View File

@@ -1608,10 +1608,10 @@ void wNETFrameExtents(WWindow *wwin)
if (wwin->frame->resizebar)
extents[3] = wwin->frame->resizebar->height;
if (HAS_BORDER(wwin)) {
extents[0] += FRAME_BORDER_WIDTH;
extents[1] += FRAME_BORDER_WIDTH;
extents[2] += FRAME_BORDER_WIDTH;
extents[3] += FRAME_BORDER_WIDTH;
extents[0] += wwin->screen_ptr->frame_border_width;
extents[1] += wwin->screen_ptr->frame_border_width;
extents[2] += wwin->screen_ptr->frame_border_width;
extents[3] += wwin->screen_ptr->frame_border_width;
}
XChangeProperty(dpy, wwin->client_win, net_frame_extents, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) extents, 4);