sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e354644c120c66b04bbf5e284cecb14023fd45b9
parent f38d1e01799ecf3a917ad105ff9ce4ba93e298bc
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date:   Tue, 14 Feb 2012 21:00:59 +0100

update float border color patch to dwm 6.0
Diffstat:
Adwm.suckless.org/patches/dwm-6.0-float_border_color2.diff | 84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/float_border_color.md | 20++++++++++++++++++++
Ddwm.suckless.org/patches/historical/float_border_color.md | 19-------------------
3 files changed, 104 insertions(+), 19 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff b/dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff @@ -0,0 +1,84 @@ +URL: http://dwm.suckless.org/patches/historical/float_border_color +float_border_color2 allows you to specify a different border color for floating +windows. + +diff -r 6f54bd1ef439 config.def.h +--- a/config.def.h Wed Jan 04 13:30:12 2012 +0100 ++++ b/config.def.h Sun Feb 12 09:32:30 2012 +0100 +@@ -8,6 +8,8 @@ + static const char selbordercolor[] = "#005577"; + static const char selbgcolor[] = "#005577"; + static const char selfgcolor[] = "#eeeeee"; ++static const char floatnormbordercolor[] = "#005577"; ++static const char floatselbordercolor[] = "#005577"; + static const unsigned int borderpx = 1; /* border pixel of windows */ + static const unsigned int snap = 32; /* snap pixel */ + static const Bool showbar = True; /* False means no bar */ +diff -r 6f54bd1ef439 dwm.c +--- a/dwm.c Wed Jan 04 13:30:12 2012 +0100 ++++ b/dwm.c Sun Feb 12 09:32:30 2012 +0100 +@@ -57,7 +57,7 @@ + + /* enums */ + enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ +-enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ ++enum { ColBorder, ColFG, ColBG, ColBorderFloat, ColLast }; /* color */ + enum { NetSupported, NetWMName, NetWMState, + NetWMFullscreen, NetActiveWindow, NetWMWindowType, + NetWMWindowTypeDialog, NetLast }; /* EWMH atoms */ +@@ -855,7 +855,10 @@ + detachstack(c); + attachstack(c); + grabbuttons(c, True); +- XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); ++ if(c->isfloating) ++ XSetWindowBorder(dpy, c->win, dc.sel[ColBorderFloat]); ++ else ++ XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); + setfocus(c); + } + else +@@ -1155,6 +1158,8 @@ + c->isfloating = c->oldstate = trans != None || c->isfixed; + if(c->isfloating) + XRaiseWindow(dpy, c->win); ++ if(c->isfloating) ++ XSetWindowBorder(dpy, w, dc.norm[ColBorderFloat]); + attach(c); + attachstack(c); + XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ +@@ -1615,9 +1620,11 @@ + dc.norm[ColBorder] = getcolor(normbordercolor); + dc.norm[ColBG] = getcolor(normbgcolor); + dc.norm[ColFG] = getcolor(normfgcolor); ++ dc.norm[ColBorderFloat] = getcolor(floatnormbordercolor); + dc.sel[ColBorder] = getcolor(selbordercolor); + dc.sel[ColBG] = getcolor(selbgcolor); + dc.sel[ColFG] = getcolor(selfgcolor); ++ dc.sel[ColBorderFloat] = getcolor(floatselbordercolor); + dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); + dc.gc = XCreateGC(dpy, root, 0, NULL); + XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); +@@ -1741,6 +1748,10 @@ + return; + selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; + if(selmon->sel->isfloating) ++ XSetWindowBorder(dpy, selmon->sel->win, dc.sel[ColBorderFloat]); ++ else ++ XSetWindowBorder(dpy, selmon->sel->win, dc.sel[ColBorder]); ++ if(selmon->sel->isfloating) + resize(selmon->sel, selmon->sel->x, selmon->sel->y, + selmon->sel->w, selmon->sel->h, False); + arrange(selmon); +@@ -1776,7 +1787,10 @@ + if(!c) + return; + grabbuttons(c, False); +- XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); ++ if(c->isfloating) ++ XSetWindowBorder(dpy, c->win, dc.norm[ColBorderFloat]); ++ else ++ XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); + if(setfocus) + XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + } diff --git a/dwm.suckless.org/patches/float_border_color.md b/dwm.suckless.org/patches/float_border_color.md @@ -0,0 +1,20 @@ +# FLOAT BORDER COLOR # + +## Description ## + +This patch allows you to specify a different border color for floating windows. + +## Download ## + * [dwm-6.0-float-border-color2.diff][4] + * [dwm-5.0-float-border-color2.diff][3] + * [dwm-4.6-float-border-color2.diff][2] + * [dwm-4.5-float-border-color2.diff][1] + +## Author ## + * Message-ID: <20070626093131.GA5005@shota.mine.nu> + * Updated by Jan Christoph Ebersbach - <jceb@tzi.de> + +[1]: http://www.e-jc.de/dwm/4.5/dwm-4.5-tip_ac233c362502-float-border-color2.diff +[2]: http://www.e-jc.de/dwm/4.6/current/dwm-4.6-float-border-color2.diff +[3]: http://www.e-jc.de/dwm/5.0/current/dwm-5.0-float-border-color2.diff +[4]: dwm-6.0-float_border_color2.diff diff --git a/dwm.suckless.org/patches/historical/float_border_color.md b/dwm.suckless.org/patches/historical/float_border_color.md @@ -1,19 +0,0 @@ -# FLOAT BORDER COLOR # - -## Description ## - -This patch allows you to specify a different border color for floating windows. - -## Download ## - * [dwm-5.0-float-border-color2.diff][3] - * [dwm-4.6-float-border-color2.diff][2] - * [dwm-4.5-float-border-color2.diff][1] - -## Author ## - * Message-ID: <20070626093131.GA5005@shota.mine.nu> - * Updated by Jan Christoph Ebersbach - <jceb@tzi.de> - -[1]: http://www.e-jc.de/dwm/4.5/dwm-4.5-tip_ac233c362502-float-border-color2.diff -[2]: http://www.e-jc.de/dwm/4.6/current/dwm-4.6-float-border-color2.diff -[3]: http://www.e-jc.de/dwm/5.0/current/dwm-5.0-float-border-color2.diff -