Commits

Anonymous committed 8d4c3ce

update systray patch to not lose the background color

  • Participants
  • Parent commits 6769d28

Comments (0)

Files changed (1)

File systray.patch

 URL: http://dwm.suckless.org/patches/systray
 Implements a system tray for dwm.
 
-diff -r 67ace0e0452b config.def.h
---- a/config.def.h	Sat Aug 18 12:46:27 2012 +0200
-+++ b/config.def.h	Sat Aug 18 12:46:35 2012 +0200
+diff -r 538dcda1e97f config.def.h
+--- a/config.def.h	Sun Oct 14 15:51:34 2012 +0200
++++ b/config.def.h	Sat Jan 19 14:13:34 2013 +0100
 @@ -12,6 +12,8 @@
  static const char floatselbordercolor[]  = "#ff0000";
  static const unsigned int borderpx  = 1;        /* border pixel of windows */
  static const Bool showbar           = True;     /* False means no bar */
  static const Bool topbar            = True;     /* False means bottom bar */
  
-diff -r 67ace0e0452b dwm.c
---- a/dwm.c	Sat Aug 18 12:46:27 2012 +0200
-+++ b/dwm.c	Sat Aug 18 12:46:35 2012 +0200
+diff -r 538dcda1e97f dwm.c
+--- a/dwm.c	Sun Oct 14 15:51:34 2012 +0200
++++ b/dwm.c	Sat Jan 19 14:13:34 2013 +0100
 @@ -56,12 +56,30 @@
  #define TAGMASK                 ((1 << LENGTH(tags)) - 1)
  #define TEXTW(X)                (textnw(X, strlen(X)) + dc.font.height)
 +		XSelectInput(dpy, systray->win, SubstructureNotifyMask);
 +		XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32,
 +				PropModeReplace, (unsigned char *)&systrayorientation, 1);
-+		XChangeWindowAttributes(dpy, systray->win, CWEventMask | CWOverrideRedirect | CWBackPixel, &wa);
++		XChangeWindowAttributes(dpy, systray->win, CWEventMask|CWOverrideRedirect|CWBackPixel|CWBackPixmap, &wa);
 +		XMapRaised(dpy, systray->win);
 +		XSetSelectionOwner(dpy, netatom[NetSystemTray], systray->win, CurrentTime);
 +		if(XGetSelectionOwner(dpy, netatom[NetSystemTray]) == systray->win) {