sites

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

commit 17b4de7ec29acc2a5edebc8c602a1bd771d10c4d
parent 6a4b835c4d61f7bffd7302396bd715eb326a5c93
Author: Ray Kohler <ataraxia937@gmail.com>
Date:   Mon, 21 Dec 2009 01:39:56 -0500

add sizehints dwm patch
Diffstat:
Adwm.suckless.org/patches/dwm-5.7.2-sizehints.diff | 24++++++++++++++++++++++++
Adwm.suckless.org/patches/sizehints.md | 19+++++++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-5.7.2-sizehints.diff b/dwm.suckless.org/patches/dwm-5.7.2-sizehints.diff @@ -0,0 +1,24 @@ +diff -r 46109f7eeb14 dwm.c +--- a/dwm.c Mon Dec 21 01:14:28 2009 -0500 ++++ b/dwm.c Mon Dec 21 01:16:38 2009 -0500 +@@ -1841,7 +1841,7 @@ + + if(!XGetWMNormalHints(dpy, c->win, &size, &msize)) + /* size is uninitialized, ensure that size.flags aren't used */ +- size.flags = PSize; ++ size.flags = 0; + if(size.flags & PBaseSize) { + c->basew = size.base_width; + c->baseh = size.base_height; +@@ -1880,6 +1880,11 @@ + } + else + c->maxa = c->mina = 0.0; ++ if(size.flags & PSize) { ++ c->basew = size.base_width; ++ c->baseh = size.base_height; ++ c->isfloating = True; ++ } + c->isfixed = (c->maxw && c->minw && c->maxh && c->minh + && c->maxw == c->minw && c->maxh == c->minh); + } diff --git a/dwm.suckless.org/patches/sizehints.md b/dwm.suckless.org/patches/sizehints.md @@ -0,0 +1,19 @@ +# OBEY ALL SIZEHINTS + +## Description + +This patch makes dwm obey even "soft" sizehints for new clients. +Any window that requests a specific initial size will be floated and set to that size. +Unlike with "fixed size" windows, you are able to resize and/or unfloat these windows freely - only the initial state is affected. + +This patch is honestly of limited utility since there are many clients that will abuse it. + +There is no configuration for this patch. + +## Download + + * [dwm-5.7.2-sizehints.diff](dwm-5.7.2-sizehints.diff) (695B) (20091221) + +## Author + + * Ray Kohler - <ataraxia937 gmail com>