Matthias Kruk [Tue, 16 Mar 2021 08:39:40 +0000 (17:39 +0900)]
Remove systray
The systray is shown on only one screen, but the current implementation
cannot be easily adapted to show the systray on all screens. But since
the systray turns out not to be very important anyways, this commit
removes it altogether.
Matthias Kruk [Sat, 13 Mar 2021 05:35:23 +0000 (14:35 +0900)]
Split long lines
There are several lines in the source code that do not fit on a reasonably
sized screen. This commit breaks up all long lines so they fit within 95
columns.
Matthias Kruk [Sat, 13 Mar 2021 04:56:40 +0000 (13:56 +0900)]
Give more meaningful names to global two-letter variables
Without context, it's not obvious what sw or bl are supposed to mean.
This commit renames these variables so the meaning can be gleaned from
their names.
Matthias Kruk [Sat, 13 Mar 2021 04:24:59 +0000 (13:24 +0900)]
Remove code to toggle systray and bar visibility
There are functions to hide/unhide the bar and the systray, however
they are not bound to any keys and I do not need them. This commit
removes these functions and all related variables/fields.
Matthias Kruk [Fri, 12 Mar 2021 23:02:59 +0000 (08:02 +0900)]
Use kernel-style indentation
This changes the code to use kernel-style indentation. This makes the
source longer, but also improves readability, especially with regards
to nesting.
Matthias Kruk [Sun, 28 Feb 2021 22:17:46 +0000 (07:17 +0900)]
Stop the focus from following the pointer
The focus-following-the-pointer code and the pointer-following-the-focus
code sometimes negatively interact, causing dwm to keep cycling through
the clients of a tag. The behavior is not obviously reproduceable and
appears to be a bug in a different part of dwm. For the time being,
stop the focus from following the pointer.
Matthias Kruk [Sun, 28 Feb 2021 06:04:46 +0000 (15:04 +0900)]
Make the pointer follow the focus
When the pointer moves to a different client, the focus follows the
pointer, putting the client under the pointer in focus. However, when
the focus is changed using the keyboard, the pointer remains over the
client that is now out-of-focus. If using multiple screens, or if a
client decides to hide the pointer because it is over a text input,
this can make it very annoying to figure out the pointer location.
This commit makes sure that the pointer follows the focus when it
moves to a different client.
Matthias Kruk [Thu, 24 Dec 2020 13:19:34 +0000 (22:19 +0900)]
Draw the status bar on all screens
The status bar contains the clock and other information that should
be displayed on all screens. This commit makes sure it is drawn on
all screens, not just the selected one.
Matthias Kruk [Thu, 24 Dec 2020 00:08:43 +0000 (09:08 +0900)]
Don't draw window titles in the status bar
Certain UTF-8 glyphs cause issues with underlying libraries, causing
dwm to crash. Websites such as Twitter will frequently include such
glyphs in their title, causing dwm to try to render them in the status
bar. This commit keeps dwm from displaying window titles in the status
bar.
Matthias Kruk [Wed, 5 Aug 2020 06:56:08 +0000 (15:56 +0900)]
bookshelf, bookstack: Make sure applysizehints() does not mess with client dimensions, increase size of first window if the screen size can't be divided evenly