Commit Graph

596 Commits

Author SHA1 Message Date
fesowowako 0c2fde57f7 Update dwm.c 2024-02-25 12:21:52 +02:00
speedie b9938cb25f No need to call setup() multiple times 2023-06-15 23:28:39 +02:00
speedie 8bff8140e7 Remove old xrdb patch, which does not need to be used alongside the
.Xresources patch.
2023-06-15 23:23:48 +02:00
Luke Smith 2cfa02d9b3 revert 712d6639ff8e863560328131bbb92b248dc9cde7 2023-02-28 18:25:53 -05:00
iStagnant 787a8bc10d Bump to 6.4 2023-02-24 23:31:26 +02:00
Luke Smith 4ecf33f469 preserveonrestart 2022-11-02 12:53:16 -04:00
Luke Smith eec78faa7c fix swallow flicker, close #210 2022-10-18 18:23:56 -04:00
Luke Smith 20484bf4c8 return of xrdb patch to F5 2022-07-08 14:12:15 -04:00
frei-0xff b8d91c9cb3 Unset fullscreen on current window when new window is opened 2022-01-21 03:56:32 +02:00
Ethan Marshall 7e843c47ba Fix small edge cases
Fix case where only windows available are sticky
Fix case where stack is empty sometimes segfaulting
2021-12-05 17:01:20 +00:00
Ethan Marshall 125a12548f Initial fix for sticky switching 2021-12-05 16:55:06 +00:00
Luke Smith 203f90bfb2 always center 2021-03-12 12:55:44 -05:00
JimKat-1 b8da5a5c88 Dwm did not redraw borders when swallowing so it messed up swallowing when in fullscreen 2020-12-28 15:06:01 +02:00
Luke Smith bc040702d9 rm xrdb patch to xresources to load non-color vars 2020-11-07 07:13:09 -05:00
Luke Smith 86aba1a368 Merge pull request #74 from aajonusonline/patch-1
swallow patch: add FreeBSD support
2020-08-27 14:33:23 -04:00
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
aajonusonline 12c731865e swallow patch: add FreeBSD support
patch from this commit:
https://github.com/deadpixi/deadpixi-dwm/commit/42a798c34b4a4182599fc09f661c3b826a77bd54
2020-05-18 23:30:49 +03: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