Return to repo list

suckless-gf-dmenu

Gentoo-friendly patches for Suckless's dmenu.
Return to HMagellan.com

border.patch (754B)


      1 diff -up dmenu-4.9-b/dmenu.c dmenu-4.9-a/dmenu.c
      2 --- dmenu-4.9-b/dmenu.c	2019-02-02 13:55:02.000000000 +0100
      3 +++ dmenu-4.9-a/dmenu.c	2019-05-19 02:11:20.966710117 +0200
      4 @@ -654,9 +654,10 @@ setup(void)
      5  	swa.override_redirect = True;
      6  	swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
      7  	swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
      8 -	win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
      9 +	win = XCreateWindow(dpy, parentwin, x, y, mw, mh, border_width,
     10  	                    CopyFromParent, CopyFromParent, CopyFromParent,
     11  	                    CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
     12 +	XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel);
     13  	XSetClassHint(dpy, win, &ch);
     14  
     15  	/* open input methods */