Commit graph

580 commits

Author SHA1 Message Date
skeletal738
dbad3534f3 dwmblocks doesn't receive signals on OpenBSD, OpenBSD doesn't implement sigqueue. Got rid of these. 2020-08-09 15:32:51 +01:00
Luke Smith
9a7f1c2e2a
Merge branch 'master' of git://git.suckless.org/dwm 2020-05-19 09:31:27 -04:00
MateuszOkulus
ddb3992e8b Fix crashes when stack is empty 2020-05-12 16:48:47 +02:00
Luke Smith
39e3fbaaba
Merge pull request #57 from aajonusonline/master
swallow patch: unfullscreen client and reset focus
2020-05-05 13:30:22 -04:00
Luke Smith
8f4d5e03d3
don't swallow if window floats 2020-05-05 13:27:59 -04:00
Aajonus Online
ff49b0353e fixes previous patch 2020-05-05 19:47:01 +03:00
Aajonus Online
305c442aca swallow patch: unfullscreen client and reset focus 2020-05-05 19:31:53 +03:00
Aajonus Online
c4f45fafac swallow patch: fix ignoring of noswallow in config 2020-05-05 18:03:31 +03:00
Luke Smith
a956836fb0
use blue 2020-05-02 14:59:17 -04:00
Luke Smith
ee885abd89
causes fewer problems 2020-05-02 07:13:40 -04:00
Luke Smith
806bb2a2bf
expandible scratchpad patch
super+shift+return for dropdown terminal

super+' for dropdown calculator
2020-04-26 12:34:14 -04:00
Luke Smith
11160adf7b
old scratchpad patch removed 2020-04-26 11:58:11 -04:00
Luke Smith
d6dfa585fc
don't necessarily restart dwmblocks 2020-04-26 11:18:07 -04:00
bakkeby
f09418bbb6 dwm crashes when opening 50+ clients (tile layout)
Many users new to dwm find themselves caught out by being kicked out to the login manager (dwm crashing) when they open 50+ clients for demonstration purposes. The number of clients reported varies depending on the resolution of the monitor.

The cause of this is due to how the default tile layout calculates the height of the next client based on the position of the previous client. Because clients have a minimum size the (ty) position can exceed that of the window height, resulting in (m->wh - ty) becoming negative. The negative height stored as an unsigned int results in a very large height ultimately resulting in dwm crashing.

This patch adds safeguards to prevent the ty and my positions from exceeding that of the window height.
2020-04-25 13:31:02 +02:00
Chris Down
ed3ab6b4fc drawbar: Don't shadow sw global
This jarred me a bit while reading the code, since "sw" usually refers
to the global screen geometry, but in drawbar() only it refers to
text-related geometry. Renaming it makes it more obvious that these are
not related.
2020-04-22 20:33:39 +02:00
Chris Down
f087d20e6e getatomprop: Add forward declaration
No functional changes, but for every other function we have a forward
declaration here. getatomprop should be no exception.
2020-04-22 20:33:26 +02:00
Chris Down
a8e9513783 setmfact: Unify bounds for compile-time and runtime mfact
There are two places that mfact can be set:

- In the mfact global, which is defined at compile time and passed
  into m->mfact during monitor setup. No bounds checks are performed,
  but the comment alongside it says that valid values are [0.05..0.95]:

      static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */

- By setmfact, which adjusts m->mfact at runtime. It also does some
  minimum and maximum bounds checks, allowing [0.1..0.9]. Values outside
  of that range are ignored, and mfact is not adjusted.

These different thresholds mean that one cannot setmfact 0.95 or 0.05,
despite the comment above that lists the legal range for mfact.

Clarify this by enforcing the same bounds in setmfact at runtime as
those listed for mfact at compile time.
2020-04-20 17:56:41 +02:00
Luke Smith
9025265545
swallow patch 2020-04-14 21:20:23 -04:00
Luke Smith
73463070d7
Merge branch 'master' of https://github.com/kronikpillow/dwm into kronikpillow-master 2020-04-14 20:49:10 -04:00
Luke Smith
d6760a401e
dwmc removed 2020-04-14 18:22:30 -04:00
KronikPillow
707881dd36 updated vanitygaps with latest fixes from original author 2020-04-14 13:11:34 +02:00
Luke Smith
c3592e0405
suppress if no dwmblocks to kill 2020-04-13 20:30:11 -04:00
Luke Smith
6184f47410
removing barpadding patch 2020-04-13 20:29:51 -04:00
Luke Smith
2ff3f79035
vanitygaps patch/fix and new & reorganized layouts 2020-04-13 08:45:27 -04:00
Luke Smith
0c7644eebc
clickable statuscmd patch with dwmblocks 2020-04-13 00:10:51 -04:00
Luke Smith
79facc6e26
startup rmd 2020-04-10 21:54:59 -04:00
Luke Smith
4435aad841
kill -HUP pid to restart, also mod+R 2020-04-10 18:50:44 -04:00
Luke Smith
2f392464b1
only show active tags 2020-04-09 16:54:57 -04:00
Luke Smith
6cb092d8f2
start startup script if it exists 2020-04-09 16:53:54 -04:00
Luke Smith
02bda162f7
dwmblocks started by default 2020-03-24 08:23:13 -04:00
Luke Smith
72a53ed2cc
monocle mode totally removed 2020-03-15 15:55:52 -04:00
KronikPillow
6f7de76199 fixed titlebar not being updated - issue #16 2020-01-30 18:18:23 +01:00
Luke Smith
927200f32d
stacker patch replaces movestack 2019-12-18 21:31:32 -05:00
Luke Smith
e2aeb53506
load typical color names 2019-12-18 13:54:53 -05:00
Luke Smith
0df3f54f31
gaps added to windows and bar 2019-12-18 13:53:41 -05:00
Luke Smith
66f629b545
dwmc and personal config added 2019-12-18 13:52:24 -05:00
Luke Smith
d726fa8612
fullscreen is always selected 2019-12-16 14:08:40 -05:00
Luke Smith
cef8e1eaf3
sticky patch 2019-12-14 17:25:52 -05:00
Luke Smith
73da539a90
true fullscreen patch 2019-12-14 17:23:48 -05:00
Luke Smith
23d66b0e0b
centered master patch 2019-12-14 17:21:41 -05:00
Luke Smith
7ebf729796
scratchpad 2019-12-14 17:21:00 -05:00
Luke Smith
93444e924d
xrdb patch 2019-12-14 17:19:57 -05:00
Hiltjo Posthuma
b69c870a30 pledge: add rpath promise for the ugly Xft font fallback 2018-06-02 17:15:42 +02:00
Klemens Nanni
f40f86fa87 Pledge on OpenBSD 2018-05-25 11:49:30 +02:00
Christopher Drelich
c8e9479186 Function declarations in correct order.
In dwm.c function declarations are in alphabetical order except for
updategeom(). There doesn't appear to be any reason for this, so this
patch corrects that, and now all function declarations are in
alphabetical order.
2018-05-12 19:19:20 +02:00
Christopher Drelich
76c8c16d79 All functions in alphabetical order except for this one. 2018-03-14 21:02:06 +01:00
Christopher Drelich
3cb34830eb ColBorder has been moved to the enum with ColFg and ColBg. 2018-03-14 17:46:48 +01:00
Hiltjo Posthuma
db2236001c dont NUL terminate _NET_WM_NAME
Reported by Kernc, thanks!

"This makes a particular program that uses libwnck [1] fail after:

    Wnck-WARNING **: Property _NET_WM_NAME contained invalid UTF-8

in this code [2] because the returned string contains a '\0' and the
documentation for g_utf8_validate() [3] explicitly states that when
string length is provided, no nul bytes are allowed."

It is not entirely clear it is incorrect, other WM's seem to not
NUL terminate it either though.
2017-12-27 13:36:53 +01:00
Hiltjo Posthuma
3756f7f6b8 sync dmenu drw.{c,h} code: use Clr* (was Scm) 2017-11-03 21:20:48 +01:00
Hiltjo Posthuma
99f78fa553 gettextprop: check result of XGetTextProperty (undefined behaviour for XFree) 2017-11-03 21:14:58 +01:00