Compare commits

..

1567 Commits
0.4 ... master

Author SHA1 Message Date
Hiltjo Posthuma a786211d6c Revert "Improve speed of drw_text when provided with large strings"
This reverts commit 716233534b.

It causes issues with truncation of characters when the text does not fit and
so on.  The patch should be reworked and properly tested.
5 years ago
Miles Alan 716233534b Improve speed of drw_text when provided with large strings
Calculates len & ew in drw_font_getexts loop by incrementing instead of
decrementing; as such avoids proportional increase in time spent in loop
based on provided strings size.
5 years ago
Quentin Rameau 138b405f0c Add a configuration option for fullscreen locking
Some people are annoyed to have this new behaviour forced for some
application which use fake fullscreen.
5 years ago
Chris Down 67d76bdc68 Do not allow focus to drift from fullscreen client via focusstack()
It generally doesn't make much sense to allow focusstack() to navigate
away from the selected fullscreen client, as you can't even see which
client you're selecting behind it.

I have had this up for a while on the wiki as a separate patch[0], but
it seems reasonable to avoid this behaviour in dwm mainline, since I'm
struggling to think of any reason to navigate away from a fullscreen
client other than a mistake.

0: https://dwm.suckless.org/patches/alwaysfullscreen/
5 years ago
Ian Remmler 61bb8b2241 Fix x coordinate calculation in buttonpress. 6 years ago
Hiltjo Posthuma bb2e7222ba dwm.1: fix wrong text in man page 6 years ago
Alex Flierl f04cac6d6e Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
Hiltjo Posthuma c82db690cc config.mk: fix POSIX_C_SOURCE macro for feature test for snprintf()
The feature test was incorrect:
_POSIX_C_SOURCE=2

"The value 2 or greater additionally exposes definitions for POSIX.2-1992."
http://man7.org/linux/man-pages/man7/feature_test_macros.7.html

A higher value is needed (atleast 1995):
https://pubs.opengroup.org/onlinepubs/9699919799/functions/snprintf.html

FreeBSD feature test macro:
on
https://github.com/freebsd/freebsd/blob/master/include/stdio.h line 297

This was already fixed in dmenu.

This fixes a warning on FreeBSD, reported by Plasmoduck on IRC, thanks.
6 years ago
Anselm R Garbe cb3f58ad06 Prepare 6.2 release. 7 years ago
Hiltjo Posthuma b69c870a30 pledge: add rpath promise for the ugly Xft font fallback 8 years ago
Hiltjo Posthuma e78b4a9207 Makefile: just show the compiler output
Don't be fancy and just show the actual output so debugging is simpler.
8 years ago
Klemens Nanni 3cd4023fb3 Do not strip at link stage
Building with debug symbols is worthless unless LDFLAGS are manually
adjusted as well.
8 years ago
Klemens Nanni f40f86fa87 Pledge on OpenBSD 8 years ago
Hiltjo Posthuma c3a2e016bb config.def.h: ClkTagBar missing from comment
by Christopher Drelich <cd@cdrakka.com>

Patch was mangled on the ML, also adjusted the order to be the same as
the enum in dwm.c
8 years ago
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.
8 years ago
Hiltjo Posthuma 10dfa65860 remove old TODO and BUGS entries
the bug in the dwm man page is an (ancient) Java issue.

Thanks David and quinq for the patches and feedback!
8 years ago
Hiltjo Posthuma 3bd8466e93 update README: remove mentioning the old dextra repo
Thanks Christopher Drelich <cd@cdrakka.com>
8 years ago
Christopher Drelich 76c8c16d79 All functions in alphabetical order except for this one. 8 years ago
Christopher Drelich 3cb34830eb ColBorder has been moved to the enum with ColFg and ColBg. 8 years ago
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.
8 years ago
Hiltjo Posthuma 3756f7f6b8 sync dmenu drw.{c,h} code: use Clr* (was Scm) 8 years ago
Hiltjo Posthuma 99f78fa553 gettextprop: check result of XGetTextProperty (undefined behaviour for XFree) 8 years ago
Omar Sandoval a9b6a312a7 Set class name on status bar
This is useful for configuring compositors to ignore the status bar
window.
8 years ago
Daniel Cousens 6aa8e37efe simplify isfixed conditions 8 years ago
Anselm R Garbe ceac8c91ff yet another cleanup
The previous patches introduced some unclean space-based indentation
patterns. This patch fixes them.
9 years ago
Markus Teich 5b238c8dab Don't restrict snap in mousemove
This also fixes a bug where client windows only switch to floating mode when the
mouse is dragged in one specific direction.
9 years ago
Markus Teich 022d076054 Button passthrough when client is not focused
Before this change it is not possible to press a button in a client on the first
click if the client is not yet focused. The first click on the button would
only focus the client and a second click on the button is needed to activate it.
This situation can occur when moving the mouse over a client (therefore focusing
it) and then moving the focus to another client with keyboard shortcuts.

After this commit the behavior is fixed and button presses on unfocused clients
are passed to the client correctly.
9 years ago
Markus Teich 2952b68db8 cleanup
- unify multi-line expression alignment style.
- unify multi-line function call alignment style.
- simplify client moving on monitor count decrease.
- clarify comment for focusin().
- remove old confusing comment about input focus fix in focusmon(). The
  explanation is already in the old commit message, so no need to keep it in the
  code.
- remove old comment describing even older state of the code in focus().
- unify comment style.
- break up some long lines.
- fix some typos and grammar.
9 years ago
Anselm R Garbe bb3bd6fec3 applied Markus' tagset purge of alternative view on _NET_ACTIVE_WINDOW event 9 years ago
Anselm R Garbe e63bf22948 applied Ivan Delalande's NET_SUPPORTING_WM_CHECK patch for gtk3 compatibility 9 years ago
Anselm R Garbe 5376947571 applied Ian Remmler's man page adjustment suggestions 9 years ago
Anselm R Garbe 975c898376 applied Markus' decouple color-scheme patch 9 years ago
Anselm R Garbe a137a86a23 applied Markus' clarify status text padding patch 9 years ago
Quentin Rameau 839c7f6939 LICENSE: update people 9 years ago
Quentin Rameau 7a59cd1457 dwm.1: add keybinding for spawning dmenu 9 years ago
Hiltjo Posthuma 24849acada die() on calloc failure
thanks Markus Teich and David!
9 years ago
Hiltjo Posthuma ab9571bbc5 die() consistency: always add newline 10 years ago
Hiltjo Posthuma 56a31dc4a7 config.def.h: style improvement, use color Scheme enum 10 years ago
Markus Teich 7af4d439bd import new drw from libsl and minor fixes.
- better scaling for occupied tag squares.
- draw statusline first to omitt some complicated calculations.
10 years ago
Eric Pruitt cd2d7549b3 Configure geometry before applying rules
Configuring geometry before applying rules makes it possible to have
more complex constraints in applyrules that depend on the initial window
dimensions and location.
10 years ago
Hiltjo Posthuma 3465bed290 fix fullscreen clients not resized on X display resolution change
patch provided by Bert Münnich <ber.t_AT_posteo.de>, thanks!
10 years ago
Quentin Rameau 4ec3a673ff Shut up glibc about _BSD_SOURCE being deprecated 10 years ago
Hiltjo Posthuma 5ed9c48196 code-style consistency 10 years ago
Hiltjo Posthuma 3c91283ede unboolification 10 years ago
Hiltjo Posthuma e941181f46 sort include + whitespace fix 10 years ago
Hiltjo Posthuma 43e82adf0d separate program-specific c99 bool and X11
True, False are X11-specific (int), make sure to use c99 stdbool for
program-specific things.
10 years ago
Hiltjo Posthuma 42cf1c7d8f Makefile: package all files with make dist 10 years ago
Quentin Rameau dce4fb3737 setfullscreen: don't process the property twice
Some clients try to set _NET_WM_STATE_FULLSCREEN even when the window is
already in fullscreen.
For example, c->oldstate was set two times in a raw and window would
then always be floating.
We must check that it's not the case before processing it.
(original patch modified with suggestion from Markus Teich
<markus.teich@stusta.mhn.de>)
10 years ago
Hiltjo Posthuma 646b351cc7 sync updated drw code from dmenu
important:
- drw_rect: didn't use w and h, change the dwm code accordingly.
- drw_text: text is NULL is not allowed, use drw_rect().
10 years ago
Hiltjo Posthuma e3b7e1d620 dwm: use ecalloc, prevent theoretical overflow 10 years ago
Hiltjo Posthuma 04db03a4e6 cleanup, dont use c++ style comments
- signal: print error string.
- die: start message with lower-case (consistency).
- bump version to 2015.
10 years ago
Hiltjo Posthuma 4a4817b3aa dwm: cleanup: free schemes and cursors as array 10 years ago
Hiltjo Posthuma 7e1182ce55 config.h: use common default font, pass Xft font name to dmenu
dmenu uses Xft now (soon to be released).
10 years ago
Hiltjo Posthuma 40529e1469 config.mk: add $FREETYPELIBS and $FREETYPEINC, simpler to override (ports and *BSDs) 10 years ago
Eric Pruitt 14343e69cc Add Xft and follback-fonts support to graphics lib 11 years ago
Anselm R Garbe 35db6d8afc removed .hgtags, thanks Dimitris for spotting 11 years ago
Anselm R Garbe 3d1090ba89 applied Hiltjo's resize/move limitation
"Limit the amount of updates when resizing or moving a window in floating
mode to 60 times per second. This makes resizing and moving alot smoother
and by limiting it it also uses alot less resources on my machine.
12 years ago
Anselm R Garbe 18248ebf4b same as before with dwm.c as well 12 years ago
Anselm R Garbe b468873b2b updated copyright notice in LICENSE file 12 years ago
Anselm R Garbe cdec9782a1 applied Lukas' focus suggestion at startup, thanks 13 years ago
Anselm R Garbe 6af273771c applied improved version of Martti Kühne's dmenu/multi monitor approach from dwm, no dmenuspawn required 13 years ago
Anselm R Garbe 4fb31e0896 do not take our font declaration as default for st 13 years ago
Anselm R Garbe b800a1d136 applied Jochen's drw_text patch, thanks 13 years ago
Anselm R Garbe 33a74489f0 applied Julian's enum approach,
however renamed theme into scheme resp. Theme into ClrScheme
13 years ago
Anselm R Garbe 5364697914 finished libsl/drw integration 13 years ago
Anselm R Garbe 7edc596311 include font argument for st by default 13 years ago
Anselm R Garbe 68b400e95d added st to SEE ALSO section 13 years ago
Anselm R Garbe 656882d76f use st as default terminal from now on 13 years ago
Anselm R Garbe 1479e76f01 shut up about deprecated Xlib functions 13 years ago
Anselm R Garbe f2544a3318 renamed draw into drw 13 years ago
Anselm R Garbe aafeaf7317 continued with draw.c and draw.h implementation, now the integration begins 13 years ago
Anselm R Garbe f21d46ea7d continued with draw.c abstraction, also started util.{h,c} implementation, that will be used by draw.c as well 13 years ago
anselm@garbe.us c0ba635c50 removed DDC, all is Draw-dependent 13 years ago
anselm@garbe.us 0a673ad7a3 continued, distinction of Draw and DDC is bad, needs to be merged 13 years ago
anselm@garbe.us 3aabc08ede reverting the xkb dependency, I don't care if this function is deprecated, it seems it breaks other stuff instead. 13 years ago
anselm@garbe.us d456617f0e basic draw.c structure 13 years ago
anselm@garbe.us 61fe833a06 reverting to plain X11 fonts in order to implement draw.c default 13 years ago
anselm@garbe.us 917e281634 removed obsolete bugs from BUGS file 13 years ago
anselm@garbe.us 31451c3ad3 compile fix 13 years ago
anselm@garbe.us 344f35f9f5 applied Neil Klopfstein's patch, slightly modified 13 years ago
anselm@garbe.us 87adcd263b starting with initial draw.h 13 years ago
anselm@garbe.us fd3c19bd55 incorporating Xft instead of cairo, cairo provides far too many options 13 years ago
anselm@garbe.us 1bdb393f81 keep 6.1 intact 14 years ago
anselm@garbe.us 940feed314 reverted to old updategeom() after several complains, we need to optimize the old way 14 years ago
anselm@garbe.us 606b44179d applied James Turner's XkbKeycodeToKeysym patch, thanks 14 years ago
anselm@garbe.us 20f6917910 drastically changed updategeom() handling, see comment in updategeom() for details 14 years ago
anselm@garbe.us 820cbb3545 reversed Andreas Amann's fullscreen fix with the approach proposed by Gary Langshaw:
- idea is not supporting movemouse/resizemouse/togglefloating for fullscreen windows
- as fullscreen windows are broken anyways, they should only be adjusted by their own means
14 years ago
anselm@garbe.us 90f3238301 added kludge to fix some input focus misbehavior in gedit and anjuta, thanks Martti Kühne 14 years ago
anselm@garbe.us 3bfc43c3d0 applied Andreas Amanns' netwm_client_list patch, but with some indentation fixes 14 years ago
anselm@garbe.us c1128417a9 applied Andreas Amann's netwm_active_window patch, thx 14 years ago
anselm@garbe.us 1b62f8fa58 applied Andreas Amann fullscreen fix, some minor modifications 14 years ago
Connor Lane Smith 54c3044dec unfocus on slow sloppy monitor focus 14 years ago
anselm@garbe.us 51336aa4a3 applied Eckehard Berns fix fix, sorry that this took so long 14 years ago
anselm@garbe.us c4b6ac812e added 20h's clarification 14 years ago
anselm@garbe.us 873bcb97a9 applied Eckehard Berns barwin leak fix and his suggestion to deal with restack() -- the latter aspect needs further investigation. 14 years ago
anselm@garbe.us 907db0a851 config.mk cleanup 14 years ago
anselm@garbe.us 4e7c469862 Added tag 6.0 for changeset ec4baab78314 14 years ago
anselm@garbe.us 26445a0dc9 bump version to 6.0 14 years ago
Connor Lane Smith b5068e32e9 add sloppy monitor focus 14 years ago
Connor Lane Smith f099d2d5b5 new default colour scheme 14 years ago
Connor Lane Smith 80a9da555e calculate window/monitor intersection 14 years ago
Connor Lane Smith d21026f0a1 honour fullscreen hint on map 14 years ago
anselm@garbe.us e5a1e77351 testing Brians multiscreen issue fix 14 years ago
Christoph Lohmann 8262d9e663 make ewmh dialog windows float 14 years ago
Connor Lane Smith 90af1ced3c allow 0 nmaster 14 years ago
Connor Lane Smith 5ccd42f807 fix big-border corner case 14 years ago
garbeam@gmail.com 1586b7a02d added keyrelease remark to TODO 14 years ago
Connor Lane Smith 2420071f4c improve tile spacing 14 years ago
Connor Lane Smith 04c26574b8 add nmaster binds to manpage 14 years ago
Connor Lane Smith b1a28ae1da apply nmaster patch 14 years ago
Connor Lane Smith f68a01cd76 apply resize hints in floating layout 14 years ago
Connor Lane Smith 2b625eb73e hide clients to the left, not the right 14 years ago
garbeam@gmail.com 0f1f30daca applied Connors cleanup patch of Eckehards proposed fix of applyrules(), thanks everyone involved 15 years ago
garbeam@gmail.com dec4850d05 applied Connors and Valentins patch to improve the unmapnotify handling of broken clients 15 years ago
garbeam@gmail.com 0de4197cc5 applied Peter Hartlichs nice interim Xinerama and map fix patches, for debugging purposes I also added his transient test driver 15 years ago
garbeam@gmail.com a372248b80 applied anonymous code cleanup patch 15 years ago
garbeam@gmail.com 69e7d7dfd3 added a marker for the flash fullscreen issue 15 years ago
garbeam@gmail.com c99fe7dd7d changed sleep 20 into sleep 1 in example script as suggested by Snader_LB 15 years ago
garbeam@gmail.com d6670a800d applied Connors aesthitic buf fix in tile(), thanks 15 years ago
garbeam@gmail.com 6288c44697 applied Peters magic float mode bugfix 15 years ago
garbeam@gmail.com d5c5c52b30 applied lolilolicon's floating center patch, further investigation wrt his second issue reported needed 15 years ago
garbeam@gmail.com d0b4575bf4 thanks to recursions on IRC for his remark 15 years ago
garbeam@gmail.com 03518ce49e Added tag 5.9 for changeset dd74622a4785 15 years ago
garbeam@gmail.com cd8bb06af5 enabled release flags 15 years ago
garbeam@gmail.com 3150a8a1be applied Peters wintoclient/wintomon optimisation in enternotify() 15 years ago
garbeam@gmail.com b3c5f5435a removed unneeded offset recalculation, thanks Jukka, let's see if this breaks some other client 15 years ago
garbeam@gmail.com a692bdcf2b undo the focus optimisation patch for 5.9 15 years ago
garbeam@gmail.com d83454f6b7 applied Peters two patches, please test hg tip, if nothing breaks this is 5.9 15 years ago
garbeam@gmail.com 27b0142203 applied Garys patch in a slightly modified way 15 years ago
garbeam@gmail.com 867ba36030 applied Nicolas Capit's patch as interim solution until the multiscreen support is reworked in 6.0 15 years ago
Connor Lane Smith e83f36db10 fixed scroll lock (thanks bogdan) 15 years ago
Connor Lane Smith 212f417e44 fix numlock (thanks mikhail) 15 years ago
garbeam@gmail.com 3a392b8558 making enternotify less focus hungry 15 years ago
garbeam@gmail.com 92fe06b501 applied Andreas Amann's patch from Oct 2010, thanks 15 years ago
garbeam@gmail.com 6cf29bff33 applied Rudys barwidth patch, thanks Rudy 15 years ago
garbeam@gmail.com 60c06a7cb4 don't check for monocle layout in zoom() exit condition 15 years ago
garbeam@gmail.com 1147546122 Thanks for the pedantic review :) 15 years ago
garbeam@gmail.com d384cee751 fixing some minor issues, next week is dwm-5.9 release time 15 years ago
Connor Lane Smith 5c710cf89c rm draw.c from 5.9 branch 15 years ago
Connor Lane Smith 8a111c181e fix typo 15 years ago
Connor Lane Smith 2255bf46a0 cleaner drawing 15 years ago
Connor Lane Smith 04797343db update draw.c 15 years ago
Connor Lane Smith e7d41cc188 added draw.h, draw.c 15 years ago
Anselm R Garbe 22d8818850 applied Evil_Bobs cleanup patch 15 years ago
Anselm R Garbe 6784429c3c applied another minor change to the README 15 years ago
Anselm R Garbe 37fea84de8 applied Thomas' README patch 15 years ago
Anselm R Garbe c14d293e51 applied Jack's mplayer fullscreen patch 15 years ago
Anselm R Garbe 79b1657a19 missed declaration 15 years ago
Anselm R Garbe d24837f1ad minor fix of the NetActiveWindow multi-monitor flaw, slight rearrangement 15 years ago
Anselm R Garbe 3c2d303c0e applied Peter/Andreas NetActiveWindow patch in a slightly modified version 15 years ago
Anselm R Garbe 1e20a0f78a applied Brendan MacDonell's WM_TAKE_FOCUS patch, thanks Brendan! 15 years ago
Anselm R Garbe 96f9855248 applied another patch of Hiltjo, thanks 15 years ago
Anselm R Garbe 3c48858ffa applied Hiltjos' BUGS patch from 23 Mar, sorry took a while :) 15 years ago
Anselm R Garbe dd46d5b588 applied Hiltjo's multimon mouse-based resize fix 15 years ago
Anselm R Garbe 0bc4e41ebd applied anonymous patch, I don't think the reversed array access has semantic side-effects 15 years ago
Anselm R Garbe 703c4dd253 added a todo 15 years ago
Anselm R Garbe b68528d85d applied Hiltjo's cleanup patch 15 years ago
Anselm R Garbe a644baf674 applied Hiltjo's tiny cleanup fix 16 years ago
Anselm R Garbe c1f8688bfa applied Hiltjo's tiny cleanup patch, thanks! 16 years ago
Anselm R Garbe bea4dd2490 does this make a difference? 16 years ago
anselm@garbe.us 83d10be1c1 added TODO and bumped version to 5.9 16 years ago
anselm@garbe.us 1529058f27 applied Hiltjo Posthuma's line saver patch 16 years ago
Anselm R Garbe 36311d88af applied Hiltjo Posthuma's double-XineramaQueryScreens() patch, thanks Hiltjo! 16 years ago
anselm@garbe.us f1a2a3c850 Added tag 5.8.2 for changeset a043f0800805 16 years ago
Anselm R Garbe ee734fae6b increased version 16 years ago
Anselm R Garbe 62d3caa999 implemented better fullscreen handling, please test 16 years ago
Anselm R Garbe 4c9b397ff9 Added tag 5.8.1 for changeset 1ed1e75c9c2e 16 years ago
Anselm R Garbe 5c6545adf5 removing Sylvain's patch because it breaks more than it fixes unfortunately, re-issuing a bugfix release 5.8.1 16 years ago
Anselm R Garbe a704b1ee34 Added tag 5.8 for changeset 60ea8fed13ab 16 years ago
anselm@garbe.us f83d61dfe8 removed DEBUG code and added 2010 to the copyright list 16 years ago
anselm@garbe.us c6180949a7 applied Sylvain Laurent's EWMH fullscreen state patch, simplified his patch a bit 16 years ago
Anselm R Garbe 1973ab0643 added the related bug reported by voltaic 16 years ago
Anselm R Garbe 427053f8d1 pretty printing bugs a bit 16 years ago
Anselm R Garbe a88e0373ef selmon optimisation is needed 16 years ago
Anselm R Garbe aa9f2be24e more debug output, experimental focus optimisation 16 years ago
Anselm R Garbe c53b29e60b quick typo fix 16 years ago
Anselm R Garbe d6bdd03d91 it's debug season for upcoming dwm 5.8, so only use this if you really want to run experimental code or debug code 16 years ago
Anselm R Garbe 1144e98394 another bug report 16 years ago
Anselm R Garbe 7671d03a90 removed misleading comment, thanks Romain Bertrand 16 years ago
Anselm R Garbe bc554d45d8 added nsz's last bug corner case 16 years ago
Anselm R Garbe ac4caea921 added BUGS, next version is 5.8 16 years ago
Anselm R Garbe 161f2d921b Added tag 5.7.2 for changeset 15761ac5e2f1 17 years ago
Anselm R Garbe 210378f198 applied Ryan Zheng's patch and re-releasing 5.7.2 17 years ago
Anselm R Garbe 7879616a75 Added tag 5.7.1 for changeset 48c3f87c335d 17 years ago
Anselm R Garbe 9e8dd3479d fixed the layout symbol bug reported by Nibble (but using a different approach as he suggested)
- optimised drawbar() and arrange() handling for multiple monitors, arrange only arranges the relevant monitors when applicable, same with drawbar
- need to release 5.7.1
17 years ago
Anselm R Garbe 0b72be924d Added tag 5.7 for changeset 257403d4cd96 17 years ago
Anselm R Garbe 91e902f7fe switching to release flags 17 years ago
Anselm R Garbe 30fed9a211 implemented nn < n case, k-zed please recheck 17 years ago
Anselm R Garbe c45d46ad9a use buffer instead of pointer for mon->ltsymbol 17 years ago
Anselm R Garbe 6f55de8310 added missing scan 17 years ago
Anselm R Garbe 07ad298133 implemented different version of updategeom 17 years ago
Anselm R Garbe f0a4845e7d added TODO to updategeom in order to implement a decent version of it soon 17 years ago
Anselm R Garbe 82ec7a7ed4 new experimental updategeom() additions that should avoid several problems with Xinerama, this is EXPERIMENTAL and might break something, the algorithms in use are quite complex and cumbersome, patches and comments welcome 17 years ago
Anselm R Garbe e7300e0f6f implemented dynamic layout symbol stuff 17 years ago
Anselm R Garbe c3feffa1e2 applied Tony Lainson's config.def.h patch 17 years ago
Anselm R Garbe 956a430054 update 17 years ago
Anselm R Garbe 01056b6636 hard-core destruction 17 years ago
Anselm R Garbe eb260b1a41 renaming isdestroyed into destroyed 17 years ago
Anselm R Garbe 7fe81359d4 sync when a client is being killed 17 years ago
Anselm R Garbe a3a859b4e9 added isdestroyed flag to unmanage 17 years ago
nsz@tpx 9c066c24b3 always updategeom when root is configured 17 years ago
Anselm R Garbe 0a668922a4 another small optimisation 17 years ago
Anselm R Garbe 5762964232 also update title if the client is on an unfocused monitor 17 years ago
Anselm R Garbe cba6b211c2 applied nsz's dwm.1 patch, also added wmname 17 years ago
Anselm R Garbe 42750a621b applied Jukka's cosmetic patch 17 years ago
Anselm R Garbe 8ef465d592 applied Jukka's sigchld patch 17 years ago
Anselm R Garbe 33fe200b52 added merged patch of anydot and Neale 17 years ago
Anselm R Garbe 91fffb3f7d fixed nn declaration 17 years ago
Anselm R Garbe 1fa31efebf Added tag 5.6.1 for changeset e47a47bd3ed4 17 years ago
Anselm R Garbe 244addb3f4 applied nsz patch 17 years ago
Anselm R Garbe c13be8d620 updategeom fix for same geom screens 17 years ago
Anselm R Garbe dc39ae8568 applied nsz' man page comment, thanks! 17 years ago
Anselm R Garbe 966d76a428 merge 17 years ago
Anselm R Garbe 7151bf8329 removed Standard input hint 17 years ago
Anselm R Garbe dfecd46190 merge 17 years ago
Anselm R Garbe 5bc4db0f76 applied nsz' dwm.1 fixes, thanks Szabolcs! 17 years ago
Anselm R Garbe 999d6e795f removed misleading comment 17 years ago
Anselm R Garbe 636075297c merge 17 years ago
Anselm R Garbe 6877a00033 it's all nsz's hard investigation effort, hail nsz! ;) 17 years ago
Anselm R Garbe 0927d635bc Added tag 5.6 for changeset 555070221577 17 years ago
Anselm R Garbe 450b08dde2 final style fixes 17 years ago
Anselm R Garbe da80487c07 removed int cast in TAGMASK as suggested by nsz 17 years ago
Anselm R Garbe d9779c06fc some stylistic changes 17 years ago
Anselm R Garbe 20996c6c5a removed obsolete BUG 17 years ago
anselm@x200s.config 8dc9fcf1b9 mark broken clients as broken 17 years ago
anselm@x200s.config fc21dd4b7e fixing updatetitle 17 years ago
Anselm R Garbe 758b100d12 extended rule to apply monitors if set up accordingly 17 years ago
Anselm R Garbe 8420fb1ced reverting to optimised compiler options, current state seems stable 17 years ago
Anselm R Garbe f6128a16f9 extended man page to mention number of visible windows 17 years ago
Anselm R Garbe 87526be6f0 added client number printing right of layout symbol 17 years ago
Anselm R Garbe 565050ac51 removed monsyms, useless 17 years ago
Anselm R Garbe 5e408d8ff6 restricting number of mons by length of monsyms 17 years ago
Anselm R Garbe 1724f7fa43 introducing const where it might make some sense 17 years ago
Anselm R Garbe 3e6fe6b541 no that's definately better 17 years ago
Anselm R Garbe 6620615ab9 some minor changes 17 years ago
Anselm R Garbe 61c3095f2f die if malloc sizeof(Monitor) fails 17 years ago
Anselm R Garbe a72dc2fec2 applied Mate's patch, added Mate to LICENSE 17 years ago
Anselm R Garbe 8b17f5517b some cleanups 17 years ago
Anselm R Garbe cd96232f7e hotfix 17 years ago
Anselm R Garbe a9e145fe6d changed focusmon/tagmon to work on prev/next instead (-1/+1), changed shortcuts to Mod1-, Mod1-. and Mod1-Shift-, Mod1-Shift-. 17 years ago
Anselm R Garbe 5dd92c7655 removed some empty lines 17 years ago
Anselm R Garbe 52bd69c2a4 interactive resizals allow display dimensions again 17 years ago
Anselm R Garbe ca376970db more sensible 17 years ago
Anselm R Garbe 8352f2b3a8 hmm, can't decide on the default monitor symbol set 17 years ago
Anselm R Garbe d4bfde79f3 update 17 years ago
Anselm R Garbe 7ac8c1d4e1 introduced monitor symbols 17 years ago
Anselm R Garbe 16e1ef5d40 minor fix 17 years ago
Anselm R Garbe 1d729384d1 several bugfixes 17 years ago
Anselm R Garbe 25c1eb28f9 some minor fix if xinerama is disabled, still some odd behavior in there 17 years ago
Anselm R Garbe d719cc9a0e updated year ranges 17 years ago
Anselm R Garbe 9cde6570cc fixed usage of sx, sy, sw, sh 17 years ago
Anselm R Garbe e408ca97d8 don't draw monitor number, if there is just one monitor 17 years ago
Anselm R Garbe 183dc670a3 fixed order of transient monitor applicaion and rule application 17 years ago
Anselm R Garbe 25947bcfdb hotfix 17 years ago
Anselm R Garbe 1ddfc571ae several simplifications 17 years ago
Anselm R Garbe 21cd59a630 play safe 17 years ago
Anselm R Garbe 6cbe47d481 applied a collection of Christof Musik patches, and fixed an issue reported by waistcoats on IRC 17 years ago
Anselm R Garbe 029655bb22 some cleanup handling for index based mon search 17 years ago
Anselm R Garbe 27db9d4448 using mon in function names for consistency reasons 17 years ago
Anselm R Garbe 176408afa8 fixed several issues with focus handling via mouse, also added sending clients to the right monitor they belong to after mouse moves/resizals 17 years ago
Anselm R Garbe 64674c395b fixed focusmon brokeness 17 years ago
Anselm R Garbe b9dee2c6f1 tag fix 17 years ago
Anselm R Garbe a73ff905b0 typo fix 17 years ago
Anselm R Garbe e3f0445df1 assign selected tags of target monitor to client when tagmon is performed (less obtrusive imho) 17 years ago
Anselm R Garbe ab06f7444b added some TODOs, some other focus fixes 17 years ago
Anselm R Garbe a2a3590979 disabled XINULATOR code for now 17 years ago
Anselm R Garbe e8aafb8e91 made bar based monitor switching working 17 years ago
Anselm R Garbe 18b1312449 several other focus fixes, introduced unfocus() 17 years ago
Anselm R Garbe 80ee95473b some focus fixes 17 years ago
Anselm R Garbe 454a04acdf fixed title rendering on non-active screen 17 years ago
Anselm R Garbe 891831fe62 fixed getclient brokeness 17 years ago
Anselm R Garbe cdb8e27453 some hotfix cleanup related to wild selmon-> destruction 17 years ago
Anselm R Garbe 5c4913e983 some restack fixes, still odd behavior if n>1 on unmanaging clients 17 years ago
Anselm R Garbe fa5ae54bbb added some dual head simulator code 17 years ago
Anselm R Garbe 7de534192c simplified left over re-assignment 17 years ago
Anselm R Garbe 54dc0d542c fixed tagmon, re-using detach/detachstack and attach/attachstack 17 years ago
Anselm R Garbe 913333f518 simplified ISVISBLE and nexttiled 17 years ago
Anselm R Garbe d702f39274 moved clients/stack/sel to Monitor, that's a per monitor structure from now on 17 years ago
Anselm R Garbe 0d8671a5ad declare buf only if XINERAMA support is used 17 years ago
Anselm R Garbe 38e9b67026 if compiled without XINERAMA support assume 1 monitor by default (n = 1) 17 years ago
Anselm R Garbe a3bbdb1b7b some more refactoring, bar toggle fixes 17 years ago
Anselm R Garbe d53ceee682 hotfixes 17 years ago
Anselm R Garbe 78f56672b5 changes monitor structure to be a list 17 years ago
Anselm R Garbe c2fff604a7 we need a tagset per monitor, removed tagset declaration from config.h 17 years ago
Anselm R Garbe 6644a6aa2e some minor fixes regarding the new xinerama support 17 years ago
Anselm R Garbe 3da2453997 several fixes through ISVISIBLE change (takes Monitor into account) 17 years ago
Anselm R Garbe 2ce37bc69e experimental xinerama support, two new actions, Mod1-w/e and Mod1-Shift-w/e 17 years ago
Anselm R Garbe f27ccc5c60 introduction of Monitor for better Xinerama support, work in progress 17 years ago
Anselm R Garbe 2dbfda72f0 removed MAXTAGLEN 17 years ago
Anselm R Garbe 7df39f3fc7 next version will be 5.6, shortened some very long lines 17 years ago
Anselm R Garbe 0b45199cec Added tag 5.5 for changeset deaa276abac1 17 years ago
Anselm R Garbe 3632d7132f applied Marc Andre Tanners showhide patch, the removal of ntiled 17 years ago
Anselm R Garbe 565697087b applied Gottox' patches, and also removed usegrab 17 years ago
arg@garbe.us ea0008cba2 applied the patch I missed from Gottox, thanks mate! 17 years ago
Anselm R Garbe af508c2e82 applied Gottox' resizehints patch, thanks Gottox! 17 years ago
Anselm R Garbe f0d1d5206f some NULL fixes 17 years ago
Anselm R Garbe 1c80c05587 override_redirect is Bool 17 years ago
Anselm R Garbe 1e350be229 applied Gottox' adjustborder removal patch (thanks!) 17 years ago
a@null 1a26389e2b applied nsz' remark 17 years ago
Premysl Hruby bf9da23f07 fix of typo, thx to Enno Gottox Boland 17 years ago
a@null 2373940215 Added tag 5.4.1 for changeset 85a78d8afa0f 17 years ago
a@null 90687482ad fixed an issue reported by Nibble, also fixed s/2008/2009/ 17 years ago
a@null 5ab627c06c Added tag 5.4 for changeset 8b7836a471f8 17 years ago
a@null 76d7e80fc4 avoid reverting the border if it's not necessary (avoids some flashing on view()) 17 years ago
a@null af8049bce8 spotted missing spaces 17 years ago
a@null 2bb51b3246 reverting some border patches 17 years ago
a@null b16d8282be changed adjustborder to be a macro 17 years ago
a@null fef4614772 applied yiyus applyrules() patch 17 years ago
a@null be39dddcc5 implemented noborder for 1 client in the view 17 years ago
a@null 6d209b9b29 made status script example of .xinitrc more useful 17 years ago
a@null 57a0788bd8 ok, using signal.h for portability reasons 17 years ago
a@null 3ad906eede removed unnecessary closure of stdin reported by Frederic Chardon, thx 17 years ago
a@null 0be9fb8797 added sys/signal.h inclusion for BSD compliance 17 years ago
a@null 62a491e36d re-applied Neale's spawn patch, credited Neale in LICENSE 17 years ago
a@null 0b5dcf229f applied Neale Pickett's xprop status reading patch, updated README and dwm.1 accordingly 17 years ago
arg@localhost.localdomain fda92f46aa applied yiyus fix 17 years ago
Anselm R Garbe a62ea4062f fix 17 years ago
Anselm R Garbe 7dc28d130f Added tag 5.3.1 for changeset 335301ed102f 17 years ago
Anselm R Garbe fbce733532 integrated yiyus clearurgent refactoring 17 years ago
arg@localhost.localdomain e7572804fa reverted spawn 17 years ago
Anselm R Garbe ed1bef1241 Added tag 5.3 for changeset 4004d6116035 17 years ago
Anselm R Garbe 2b047e460b added Neale Pickett's spawn patch, thanks Neale 17 years ago
Anselm R Garbe 5f74dc5e78 applied Gottox' comment fix (thanks) 17 years ago
Anselm R Garbe ea8a4ca46a several changes towards 5.3, XINERAMA is disabled by default, introduced usegrab Bool for grabbing the server during mouse-based resizals/movements (disabled by default), continued debugging tile() with resizehints == True and a lot of terminals supporting resizehints, still no optimal solution, I need to think about it, considering recursive algorithm for the space optimization 18 years ago
Premysl Hruby 4883a06221 removed NOBORDER(broken and badly used), introduce WIDTH/HEIGHT macros for computing client size with border added, fixes bug announced by sergey_m 18 years ago
Anselm R Garbe 4dea5324c0 Added tag 5.2 for changeset e4bcaca8e6ef 18 years ago
Anselm R Garbe 53cac17692 using malloc() instead of calloc() and sticking to static initializer and struct assignment, not using *c = (Client){}; right now to avoid some ugly gcc warning, possibly a gcc bug since we are using -std=c99 18 years ago
Anselm R Garbe 83abfc05eb applied XGetWMNormalHints fix 18 years ago
Anselm R Garbe 862b0d541d I prefer doing the check in showhide 18 years ago
Anselm R Garbe c1c6fdc5d8 applied Donald Chai's showhide patch in slightly modified ways 18 years ago
Anselm R Garbe 9a4d07d9de applied Martin Hurton's checkotherwm simplification 18 years ago
Anselm R Garbe 30410108eb applied Peter Hartlichs aspect revert fix 18 years ago
Anselm R Garbe 753e0e048e applied Gottox' grabkey patch 18 years ago
Anselm R Garbe d15d4ba45a applied yiyus tagbar patch 18 years ago
arg@localhost.localdomain 815f9c054d merged merge 18 years ago
Anselm R Garbe addc52c948 fixed 18 years ago
Anselm R Garbe 26f41c9055 checking result of XGetClassHint, removed some obsolete lines in initfont() 18 years ago
Anselm R Garbe 73ec124ae9 merged my changes 18 years ago
Anselm R Garbe ec11a3470c introduced NOBORDER macro to hide the nasty - 2 * c->bw in various calculations, moved tagset to config.def.h 18 years ago
Premysl Hruby 4b3b597da3 WM_NAME is builtin atom 18 years ago
Anselm R Garbe 288cf78b18 grabbuttons() and grabkeys() are now independent from prior numlockmask initialization 18 years ago
Anselm R Garbe 6411aa921b reverted some resize() changes, reverted setlocale removal 18 years ago
Anselm R Garbe db5db8806f applied Peter Hartlich's patch regarding aspect calculation with slight modifications 18 years ago
Anselm R Garbe 258c338030 removed artifact from wmii 18 years ago
Anselm R Garbe 85da537856 changed grabkeys, removed initmodmap 18 years ago
Anselm R Garbe 2b4157eccd applied Peter Hartlich's initmodmap patch 18 years ago
Premysl Hruby 0f26de991f applied fix of toggletag by Jan Kaliszewski 18 years ago
Anselm R Garbe 840f937a98 Martin Hurtons typo fix 18 years ago
Anselm R Garbe 6975a7e31a fixed error I did when applying Martin Hurton's drawtext patch 18 years ago
Anselm R Garbe 47f63dce55 applied Martin Hurtons resizemouse patch 18 years ago
Anselm R Garbe 02a8ca95cf applied Martin Hurton's movemouse() patch 18 years ago
Anselm R Garbe 2ce50a9cad using None instead of 0 for trans 18 years ago
Anselm R Garbe bfa5869da1 abc... 18 years ago
Anselm R Garbe 087a55f8d3 removed the i = textnw... as remarked by Martin Hurton 18 years ago
Anselm R Garbe 6d7285fd6e applied Martin Hurton's scan() patch with slight modifications 18 years ago
Anselm R Garbe 69c7b4b0ba changed order of variables in drawtext 18 years ago
Anselm R Garbe 97699e5b1b applied Martin Hurton's drawtext() patch 18 years ago
Anselm R Garbe 2dc7f42fd7 applied Martin Hurton's view() simplification, not checking arg 18 years ago
Anselm R Garbe 9f3a5cb754 making a comment more explicit 18 years ago
Anselm R Garbe b48fa3f101 removed setlocale() stuff, not necessary if Xmb in use 18 years ago
Anselm R Garbe 051a404b66 added a comment about FAQ regarding mfact meaning 18 years ago
Anselm R Garbe d8d733c34f added some comments regarding FAQ about s{x,y,w,h}, w{x,y,w,h}, b{y,h,lw} 18 years ago
Anselm R Garbe bb01e5a16f initialize trans with 0 18 years ago
Premysl Hruby 06f7eed103 fix of XGetTransientForHint in manage() 18 years ago
Premysl Hruby 0ffa6d1393 applied cleanup from M. Hurton and S. Nagy 18 years ago
Premysl Hruby 15ce143620 fixes using arg->i instead of arg->ui 18 years ago
anselm@anselm1 63d7190231 applied Johannes Hofmann's patch, please test 18 years ago
Anselm R Garbe b279cef670 made readin a config.h variable 18 years ago
Anselm R Garbe 6254ef9dc7 Added tag 5.1 for changeset ce355cea9bb8 18 years ago
Anselm R Garbe 4a2902efe4 forcing fullscreen windows to bw=0, though most fullscreen apps are broken anyways 18 years ago
Anselm R Garbe 6fad4c49f1 potential crash fix if xinerama behaves broken, though I doubt it 18 years ago
Premysl Hruby 78f0f8595f make hg tip compilable with default config 18 years ago
Anselm R Garbe 7ecadcee39 local use of xidx is useless, got rid of it, falling back to screen 0 if pointer query fails for whatever reason 18 years ago
Anselm R Garbe c86ed46a1b got rid of compile time xidx configuration, querying mouse pointer instead 18 years ago
Anselm R Garbe 9086f98068 reverted uint redefinition 18 years ago
anselm@aab 9aa4a9043d applied anydot's urgency hint patch, thanks! 18 years ago
Anselm R Garbe d5893f55be renamed eprint die 18 years ago
Anselm R Garbe f529d41ca1 simplified detach() 18 years ago
Anselm R Garbe 45768ee04b removed aux* stuff from Client 18 years ago
Anselm R Garbe a6d23fb61c removed useless comment 18 years ago
Anselm R Garbe bf76cefe47 minor fix to view() 18 years ago
Anselm R Garbe 9bb0f20515 applied Frederik Ternerot's grabbuttons patch with slight modifications 18 years ago
Anselm R Garbe 2431ae7df7 locale update 18 years ago
Anselm R Garbe 829b6b57e7 removed useless characters 18 years ago
Anselm R Garbe 7b4c512e62 applied James Turner's dwm.1 patch, thanks James! 18 years ago
Anselm R Garbe 7f7c3140a9 fix of monocle 18 years ago
Anselm R Garbe 277155cf77 another merge 18 years ago
Anselm R Garbe 0c38ec7cd6 does this fix anything? 18 years ago
Anselm R Garbe deef4c9bfd fixed Gottox' buttonpress/ClkTagBar code 18 years ago
Anselm R Garbe b86c818599 applied Gottox' ClkTagBar patch 18 years ago
Anselm R Garbe c2a916bf30 made arrange again like it was once 18 years ago
Anselm R Garbe 2bd46d1ce6 fix 18 years ago
Anselm R Garbe 6e0ce46365 use sel instead of seeking the list 18 years ago
Anselm R Garbe c853d5e9bb resize should apply if !banned 18 years ago
Anselm R Garbe 31da0b7525 applied Gottox patch 18 years ago
Anselm R Garbe 12ea925076 untested monocle 18 years ago
Anselm R Garbe 79ecbeca7e non-zero 18 years ago
Anselm R Garbe cf98ea2a9c Added tag 5.0 for changeset 06eb9644e2da 18 years ago
Anselm R Garbe d8fad9bf7a branch merge 18 years ago
Anselm R Garbe f25cc5678f tiled layout resizehints should be respected by default 18 years ago
Anselm R Garbe 5a92420fce restored y-coordinate fixing of client windows 18 years ago
arg@suckless.org ae1d865ac0 s/tags ref/tags mask/ 18 years ago
Anselm R Garbe 1ce173402f updated man page regarding Mod1-m 18 years ago
Anselm R Garbe a06b9193c7 minor fixes towards 5.0 18 years ago
Anselm R Garbe 43bb77a569 removed explicit warp in movemouse 18 years ago
Anselm R Garbe e3da222c1e removed scroll-wheel based focussing on window title clicks 18 years ago
Anselm R Garbe 66608a60fe fix of swapped focusstack mouse buttons 18 years ago
Anselm R Garbe b6aa84e51b removed the ButtonPressMask for root windows as well 18 years ago
Anselm R Garbe 9ff5143acb removed root window click handling 18 years ago
Anselm R Garbe 1edf6a7866 removed font and color definitions 18 years ago
Anselm R Garbe 4db2f44277 minor fix 18 years ago
Anselm R Garbe 1f1a132784 fixed tag click handling, however ClkRootWin doesn't work for me 18 years ago
Anselm R Garbe 512541bfbd update 18 years ago
Anselm R Garbe 709da0b858 some bugfixes of the patch application yesterday 18 years ago
Anselm R Garbe 5cd65f8cd8 integrated yiyus mouse.diff (though the bar click handling is slightly broken, I'm to tired to debug it now, yiyus could you please?) 18 years ago
Anselm R Garbe e3838e8585 made Xinerama screen index customizable 18 years ago
Anselm R Garbe 016dca4f69 removed trailing spaces reported by Soleen 18 years ago
Anselm R Garbe 8f052596b2 crash fix 18 years ago
Anselm R Garbe 9463d5354b made lt visible again in config.def.h 18 years ago
Anselm R Garbe d662f98d89 added nsz' patch 18 years ago
Anselm R Garbe e5a965a274 added SHCMD support for pipe-based commands due the new spawn() versio 18 years ago
Anselm R Garbe 5d422bb1ce using foo layout during cleanup (suggested by Gottox), add Arg->v handling for togglelayout() suggested by anydot 18 years ago
Anselm R Garbe 38a43c2dcc lt will point to a foo-layout during cleanup now (Gottox' suggestion), and togglelayout respects Arg->v 18 years ago
Anselm R Garbe c56533615f integrated Peter Hartlich's patch, removed const char *c from union, simplified togglelayout 18 years ago
Anselm R Garbe a8e0772c4d applied anydot's patchset.diff 18 years ago
arg@suckless.org 98e7950be8 final version -- Gottox verified it using the test driver 18 years ago
arg@suckless.org 88e6eb4a3a revert of introduced problem 18 years ago
arg@suckless.org 0840c1367c applied nsz' textnw patch thank you 18 years ago
arg@suckless.org 077d3e435b updated the for-loop with Gottox' proposal 18 years ago
arg@suckless.org d26b60b43e minor change 18 years ago
arg@suckless.org 32f36ab2d5 applied nsz's patches (many thanks!) 18 years ago
arg@suckless.org 08bcf721b4 small change to drawtext 18 years ago
Anselm R Garbe fc578c57e4 fixed the tile() issue with xpdf 18 years ago
Anselm R Garbe c8eaab21b6 using anydot's memcpy-approach in drawtext, however it still looks awkward to me 18 years ago
Anselm R Garbe c26e22ccee Gottox' drawtext simplification 18 years ago
Anselm R Garbe c2784e4a38 applied noviewprev.diff, fix.diff and unusedflags.diff 18 years ago
Anselm R Garbe 6e9387793b fix 18 years ago
Anselm R Garbe 92f3c181c3 lt->arrange in mfact 18 years ago
Anselm R Garbe d589f7679a isfixed implies isfloating 18 years ago
Anselm R Garbe 75690c808d applied nibbles fixes, slightly modified 18 years ago
Anselm R Garbe fde58d5e63 applied yiyus tip patch from tue 18 years ago
Anselm R Garbe e1002745fa core dump fix in cleanup 18 years ago
Anselm R Garbe 940a4cc6c6 updated the initial comment to reflect the use of bit arrays 18 years ago
Anselm R Garbe 64243ab05b slight changes 18 years ago
Anselm R Garbe 32c5046635 removed bx and bw, unnecessary 18 years ago
Anselm R Garbe 6c8618f502 renamed domax into ismax 18 years ago
Anselm R Garbe 9189f7a12d simplified tile() 18 years ago
Anselm R Garbe 2d4faae522 removed Layout->updategeom, unnecessary 18 years ago
Anselm R Garbe 5d2385b636 removed TEXTW 18 years ago
Anselm R Garbe 0fe2e783e9 applied yiyus domax patch with slight modifications 18 years ago
Anselm R Garbe cd3d83f571 replaced isvisible with a macro 18 years ago
Anselm R Garbe 0a9ef560c0 removed emallocz 18 years ago
Anselm R Garbe 0528a37c79 s/int/uint/ in config.h 18 years ago
Anselm R Garbe 56b2fece9e removed debug output, sanitized tag limit check 18 years ago
Anselm R Garbe 9f569fac74 setmfact argument was wrong 18 years ago
Anselm R Garbe 48d0c56eac Key.mod is uint, Client.[old]bw is int 18 years ago
Anselm R Garbe 825d6cb93a s/unsigned long/ulong/ 18 years ago
Anselm R Garbe f852504014 s/nextunfloating/nexttiled/, changed zoom() behavior 18 years ago
Anselm R Garbe c3fa9e879f s/unsigned int/uint/ 18 years ago
Anselm R Garbe 8e05f6c592 s/void */const void */ 18 years ago
Anselm R Garbe 39d1ecd5b0 applied Gottox bitmask + void *arg patch 18 years ago
anselm@anselm1 103fb58a44 some minor fixes 18 years ago
anselm@anselm1 5f55af40ae simplification 18 years ago
anselm@anselm1 f806a17692 reverted dist target in Makefile 18 years ago
anselm@anselm1 822101dd5b merged tile.c again into dwm.c 18 years ago
Anselm R Garbe 6bdef73a4f take bar into account 18 years ago
Anselm R Garbe 234b12eb73 be more polite to clients which like to appear outside the window area, but still on the screen 18 years ago
Anselm R Garbe bd4deaebfc fixed comment 18 years ago
Anselm R Garbe 499315c22c fix 18 years ago
Anselm R Garbe f22d047d41 make it easier for the user, if Xinerama support is given, always use the screen 0 as window area/bar area, everything else can be used for floating clients 18 years ago
Anselm R Garbe 4a5c8d84db improving space usage if master is left of stack (default) 18 years ago
Anselm R Garbe 71365a524f only snap within window area 18 years ago
Anselm R Garbe 3afca3e6a1 s/DEFGEOM/CUSTOMGEOM/ 18 years ago
Anselm R Garbe bdc80bdad6 update 18 years ago
Anselm R Garbe 64707da963 updatetilegeom should be fine for setmfact 18 years ago
Anselm R Garbe 549726869b recent changes, introduced togglebar, changed some defines into variable declarations where possible 18 years ago
Anselm R Garbe 42cb2bd3be new stuff 18 years ago
Anselm R Garbe 585294ce0f removed the <M> togglelayout call 18 years ago
Anselm R Garbe a864a82b34 s/tilegeom/updatetilegeom/ 18 years ago
Anselm R Garbe bd67a82fb5 removed monocle for now 18 years ago
Anselm R Garbe 14d8d828ab removed the exact focus mechanism of next/prev window 18 years ago
Anselm R Garbe 4246affc15 moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use 18 years ago
Anselm R Garbe 42c4b31003 removed tileh, renamed tilev into tile again, removed counttiles, tilemaster 18 years ago
Anselm R Garbe a785a0d712 removed Layout->isfloating 18 years ago
Anselm R Garbe 489ac07e83 removed reapply() -- unnecessary 18 years ago
Anselm R Garbe 349d768b57 renamed setlayout into togglelayout 18 years ago
Anselm R Garbe 6dfa7cac56 removed temporary wildcard handling 18 years ago
Anselm R Garbe 71681c21a5 added wild-card handling for tags 18 years ago
Anselm R Garbe 704781875c applied nsz's another style patch 18 years ago
Anselm R Garbe d7cc0f6416 applied nsz's style.diff patch 18 years ago
Anselm R Garbe 6b79f3f326 just added a comment 18 years ago
Anselm R Garbe 446fa8c671 minor fixes 18 years ago
Anselm R Garbe fa244aa7fb having monocle on Mod1-m 18 years ago
Anselm R Garbe 7ac4f8a4af hotfix 18 years ago
Anselm R Garbe 7eb26288fc removed Geom stuff, introduced updategeom() again, still view is somewhat broken? 18 years ago
Anselm R Garbe 93a4fe1052 cleaned up config.def.h 18 years ago
Anselm R Garbe 5602f44b29 implemented exact focus next, if arg != NULL to focus{next,prev} 18 years ago
Anselm R Garbe b848f4bda8 applied the proposal by nsz 18 years ago
Anselm R Garbe 86c4797f2c applied JUCE patch 18 years ago
Anselm R Garbe c094ed2473 simplification of view() as proposed by anydot 18 years ago
Anselm R Garbe bfd6079a15 applied yiyus tagset patch 18 years ago
Anselm R Garbe 7f70d90219 applied yiyus fgeom patch 18 years ago
Anselm R Garbe 858251de46 applied dfenze drawtext simplifications 18 years ago
anselm@anselm1 d26c28c1e7 this is the correct way 18 years ago
anselm@anselm1 b6335776e4 copyright notice is in LICENSE 18 years ago
anselm@anselm1 c059625128 applied Ph's seltags-simplification with some modifications 18 years ago
anselm@anselm1 874837f653 applied Ph's MIN/MAX patch, nice work! 18 years ago
anselm@anselm1 5fa559dbfc applied Ph's patch regarding geom and lt initialization 18 years ago
anselm@anselm1 146ff227fe applied Gottox' applyrules() fix 18 years ago
Anselm R Garbe bb0a328978 geometry fix proposed by Jukka 18 years ago
Anselm R Garbe 721b208478 applied applyrules-fix by Jukka, thank you Jukka! 18 years ago
Anselm R Garbe 6229ed20c2 fix 18 years ago
Anselm R Garbe 940240e5e6 applied the proposed monocle patch from the mailinglist 18 years ago
Anselm R Garbe 08c596ed10 next version is 5.0 18 years ago
anselm@anselm1 9ce6abb95c Added tag 4.9 for changeset 22c669b2dd36 18 years ago
Anselm R Garbe 0e21794e02 yet another cleanup 18 years ago
Anselm R Garbe d477fb6927 some cleanup changes 18 years ago
anselm@anselm1 3d6630b7d2 uncommented dual layout in preparation of dwm 4.9 18 years ago
anselm@anselm1 c982bb1389 applied Peter Hartlich's simplification patch of setmfact and his revival of MFACT, appliead Janness Hofmann's simplification of grabbuttons() -- thanks guys! 18 years ago
Anselm R Garbe 6cf73e706a aspects hints seem broken for fullscreen apps 18 years ago
Anselm R Garbe a520ba3c0b removed uneccessary line 18 years ago
Anselm R Garbe 0c71b16b92 bugfix 18 years ago
Anselm R Garbe 00c28a7ef2 setmfact should not have any effect if in floating layout 18 years ago
Anselm R Garbe 5a3a2d6b63 minor fix 18 years ago
Anselm R Garbe a355782a77 revival of mfact and setmfact 18 years ago
Anselm R Garbe 20cd336087 setlayout and setgeom are now togglable again 18 years ago
Anselm R Garbe a6a216f28c geom indicator and layout indicator is only displayed if there are several geoms/layouts 18 years ago
anselm@anselm1 2c2063bc75 hotfix of idxoftag 18 years ago
anselm@anselm1 e6ede461a9 blw/bgw calculation bugfix 18 years ago
Anselm R Garbe 6877205e9d updated configurenotify 18 years ago
anselm@anselm1 fb5f99d935 minor bugfix in applyrules 18 years ago
Anselm R Garbe 7ebab7533a added sample of {grow,shrink}master to config.def.h 18 years ago
Anselm R Garbe 9fa5ca3538 renamed c->border into c->bw, fixed monocle to subtract c->bw from each h/w value 18 years ago
Anselm R Garbe fe6b0c0fc1 geoms are now drawed in the status bar 18 years ago
Anselm R Garbe aa2395b6a8 removed the string-based setgeom approach, introduced a new Geom type instead and a helper macro 18 years ago
Anselm R Garbe dba22848c7 made the string-based setgeom working 18 years ago
Anselm R Garbe 33b1960220 some experimental state DO NOT USE THIS, I plan to have a nicer interface to change geometries 18 years ago
Anselm R Garbe e237b2a76f some changes towards 4.9 18 years ago
Anselm R Garbe dd9ee6d248 Added tag 4.8 for changeset 607015ddb091 18 years ago
Anselm R Garbe 1380569133 removed the comment again 18 years ago
Anselm R Garbe 831428b00c some polishing in tileh/tilev 18 years ago
Anselm R Garbe 69439715c0 minor bugfix 18 years ago
Anselm R Garbe f2e98f48fb added a new comment 18 years ago
Anselm R Garbe c19d4b2930 some cleanup 18 years ago
Anselm R Garbe f77a3d0a62 updated my geoms function 18 years ago
Anselm R Garbe 8aa1533879 update 18 years ago
Anselm R Garbe 2fc9cffdeb set layout already here 18 years ago
Anselm R Garbe 3c5b6f03ba well I use a different default tile 18 years ago
Anselm R Garbe 02673538bc added updatebarpos() 18 years ago
Anselm R Garbe 95eae7b9d2 removed all defines of geoms, implemented setgeoms() instead, added config.anselm.h to show how I'd like to see that people edit their geoms 18 years ago
Anselm R Garbe 59107755c8 some polishing 18 years ago
Anselm R Garbe d05d09b205 updated dwm(1) 18 years ago
anselm@anselm1 47b1974446 added bx, by, bw, wx, wy, ww, wh, mx, my, mw, mh, mox, moy, mow, moh, tx, ty, tw, th, wx, wy, ww, wh ad variables 18 years ago
Anselm R Garbe 247ba66c08 changed config.def.h 18 years ago
Anselm R Garbe d7b074fcce new stuff 18 years ago
Anselm R Garbe c9170189bf implemented setlayout in the way proposed on the ml, split tile() into two functions, a third will follow soon 18 years ago
Anselm R Garbe f7a45ff28b allow for vstack 18 years ago
Anselm R Garbe add7df6e9b added some comments what the TODOs are for 4.8 18 years ago
Anselm R Garbe 3a79b82721 changed config.def.h 18 years ago
Anselm R Garbe b31b430592 integrated the new -x -y -w toggles of dmenu into my setup 18 years ago
Anselm R Garbe 88c8ead3e8 removed some more useless clunk 18 years ago
Anselm R Garbe 2e95837220 implemented the stuff as I discussed on dwm@ 18 years ago
Anselm R Garbe 5d9ae3f3b7 fixed urgent hint handling 18 years ago
Anselm R Garbe 2e38296edd renamed maximise to monocle again. 18 years ago
Anselm R Garbe 59aa02a075 fixed urgency hint, though Xinerama integration is still ongoing 18 years ago
anselm@anselm1 e3c2d327f6 next on TODO 18 years ago
anselm@anselm1 295ad21092 renamed MAXLEN into MAXTAGLEN (backward compliance) 18 years ago
anselm@anselm1 39af3c2607 renamed monocle into maxmise, documented the keybindings in dwm(1) 18 years ago
Anselm R Garbe 96ee9d888c monocle goes mainstream 18 years ago
Anselm R Garbe a82cba2759 fixed applyrules bug 18 years ago
anselm@anselm1 f7c097e802 removed View cruft, now back to the roots 18 years ago
Anselm R Garbe da1b3fa437 made tag names snappier 18 years ago
anselm@anselm1 ad0a2fa042 fixed some issues nsz reported in IRC log 18 years ago
anselm@anselm1 9804726c82 well, AIM_XINERAMA should not be enabled 18 years ago
anselm@anselm1 7bc272a4e4 made the basics of the tagging concept working -- if people want dynamic tags, that's even possible with this concept, the vtags[] array needs to be modified during runtime for this -- the new code is quite experimental, ugly and needs polishing 18 years ago
anselm@anselm1 f1719ac2de removed initags -- we autoselect the first tag in each view instead 18 years ago
Anselm R Garbe d99ec61482 a small fix to buttonpress 18 years ago
Anselm R Garbe 2f70a14ee1 some more changes towards a better dwm 18 years ago
anselm@anselm1 00ca643bd7 proceeded, though we still miss a real Tag struct 18 years ago
anselm@anselm1 0271ac0ed7 disabled AIM_XINERAMA 18 years ago
anselm@anselm1 d5178292ed simplified dwm 18 years ago
anselm@anselm1 2bfd3fffbf certain fixes, though still a lot of the mutex stuff missing 18 years ago
anselm@anselm1 a3d8c05a95 pushing my changes of tonight upstream (hg tip is NOW very UNSTABLE -- but those changes are necessary to get a decent multihead support) -- I renamed Monitor into View, to reflect in a better way the dwm terminology of the past 18 years ago
anselm@anselm1 fd01413fae fixed Gottox' mail address 18 years ago
Anselm R Garbe d6e24f7116 well typo fix 18 years ago
Anselm R Garbe c43d7b7587 added Gottox to Copyright holders after all his contributions, applied his last patch 18 years ago
Anselm R Garbe de5b294edc some other fixes, resize contains a minor bug 18 years ago
Anselm R Garbe 8e0f8ffcc6 crash fix 18 years ago
Anselm R Garbe dd21823536 made arrange() Monitor-dependent as well, fixed the movemouse/resizemouse issues 18 years ago
Anselm R Garbe 9cb9c32ee7 minor 18 years ago
Anselm R Garbe 4076e2ff60 applied Gottox' monitor.diff patch (thanks btw) 18 years ago
Anselm R Garbe 55edd2d6ec made restack, drawbar also Monitor-related only 18 years ago
Anselm R Garbe 2e8e5509d9 changed arrange functions to contain the Monitor as first argument 18 years ago
Anselm R Garbe 4426032450 applied Jukka's zoom-patch 18 years ago
Anselm R Garbe e0f0397896 resize handles offscreen issues 18 years ago
Anselm R Garbe ca3e847e45 applied some necessary changes 18 years ago
Anselm R Garbe c2737b7b93 removed Monitor->dc, unnecessary 18 years ago
Anselm R Garbe 191cb9ce28 removed Monitor->root, since we do not support classical multihead 18 years ago
Anselm R Garbe 6ab163c695 some drawbar() polishing, and certain related fixes 18 years ago
Anselm R Garbe e8244395e4 urgency hook handling needs also to invert the square if present 18 years ago
Anselm R Garbe 954db46bac Chris pointed me to the fact, that the window geoms calculation can be done once for each monitor, so I applied this remark 18 years ago
Anselm R Garbe 508922b90d fixed missing else branch 18 years ago
Anselm R Garbe 4adfdc9d95 applied dme's patch to prevent changing prevtags if nothing actually changed 18 years ago
Anselm R Garbe c619363d15 applied dwm-4.8-snaptileds.diff 18 years ago
anselm@aab 012710a3ce implemented urgent hint handling (with multihead support) 18 years ago
anselm@aab c2c54cc0fa got initial Xinerama support working, though there is a lot work todo 18 years ago
anselm@anselm1 a62630ae92 some more polishing/consistency changes 18 years ago
anselm@anselm1 62b18fb9d4 proceeded with multihead/Xinerama support 18 years ago
anselm@anselm1 e0d6451086 removed maximize, there will be monocle soon 18 years ago
anselm@anselm1 7a496e9777 fixed wrong tagging stuff 18 years ago
anselm@anselm1 308f95ae5a added dmenu_run to config.h 18 years ago
anselm@anselm1 40a734bca9 root window and screen have to be in Monitor struct, we want side-by-side Xinerama and Multihead support (only Xinerama when enabled and present) 18 years ago
anselm@anselm1 985e330524 merged Christof Musik's Xinerama support patches, though this needs some polishing! 18 years ago
Anselm R. Garbe 5f19423c7b simplified Mod-m 18 years ago
Anselm R. Garbe d66ad1457e implemented reapply for re-applying the tagging rules during runtime, Mod-r 18 years ago
Anselm R. Garbe 8497f9f781 next version will be 4.8 18 years ago
Anselm R. Garbe 91bb749e97 Added tag 4.7 for changeset d6d3085307d8 18 years ago
Anselm R. Garbe 68ff133857 fixed focus steeling bug done by clients like opera 18 years ago
Anselm R. Garbe 4380db468a removed support for the NetSupportingWmCheck stuff, netbeans, argouml and others also don't work with compiz, so it is Suns problem to provide a fix 18 years ago
Anselm R. Garbe 123a565bb9 yeah compiz didn't did the trick, but identifying dwm as LookingGlass (LG3D) 18 years ago
Anselm R. Garbe d0e0505301 foo 18 years ago
Anselm R. Garbe 762b66ae7c hack that adds NET_SUPPORTING_WM_CHECK handling, dwm identifies itself as compiz, hence I believe this might workaround the JDK 1.6+ XToolkit bug 18 years ago
Anselm R. Garbe cb4951dd54 applied Ritesh's patch to stext handling with some minor modifications 19 years ago
Anselm R. Garbe 667da18b31 initialize prevtags in setup, now users can setup which seltags should be selectedin config.h 19 years ago
Anselm R. Garbe e9a0733506 Using a new tags definition (const char [][MAXTAGLEN] - thanks go to Szabolcs! 19 years ago
arg@suckless.org 198502f41d moved LENGTH to dwm.c, moved prevtags to dwm.c 19 years ago
Anselm R. Garbe 35efafe8ac we check variable == value, and not the other way - the other way is for beginner programmers. 19 years ago
Anselm R. Garbe 951d022dfc removed a misleading comment about client title windows, which don't exist anymore 19 years ago
Anselm R. Garbe 54bde0f9d7 full names in -v output of dwm 19 years ago
Anselm R. Garbe 260a55ef62 doing it in a shorter way 19 years ago
Anselm R. Garbe 0e98090d65 removed fgets usage, increment offset until a line is read, dwm will drop all lines read in one call, except the first!!! one (previously it preferred the last) - but the current approach is simplier and works better for general purpose in conjunction with the offset handling 19 years ago
Anselm R. Garbe af4667a85a simplified 19 years ago
Anselm R. Garbe a98b5e5935 made error handling more proper 19 years ago
Anselm R. Garbe b8985dc7bb replaced low-level stext reading with an fgets call 19 years ago
Anselm R. Garbe 6f60b2e1cd revival of RESIZEHINTS 19 years ago
arg@suckless.org 3033d45d1c sanders patch for b2 toggle 19 years ago
Anselm R. Garbe 34e7872c89 replaced Nmacros with LENGTH(x) macro 19 years ago
Anselm R. Garbe c36f7c3c5e replaced ISTILE with domwfact/dozoom bools, removed nrules, nlayouts and ltidx, added NRULES, NLAYOUTS and Layout *layout as alternatives, removed isarrange(), checking against layout->arrange instead. 19 years ago
Anselm R. Garbe 3fd39feb41 some sanity changes 19 years ago
Anselm R. Garbe 93eee247ca going toward 4.7 19 years ago
Anselm R. Garbe d5e8edcbcb Added tag 4.6 for changeset bcd7e18e196a 19 years ago
arg@suckless.org 13577b15e5 fixed a comment 19 years ago
Anselm R. Garbe 5473e763f6 also consider width for tile fallback enforcing 19 years ago
arg@suckless.org cdd6c3e820 removed RESIZEHINTS and enhanced tile for fixed or aspect-ratio'ed clients 19 years ago
arg@suckless.org 29f2b15ddc some cleanup, removed ntags variable, defined NTAGS macro, simplified tag(), view() and idxoftag(), fixed some NULL comparisions 19 years ago
arg@suckless.org 7b65b763bc parenthized use of ISTILE macro in dwm.c 19 years ago
arg@suckless.org e94774dd69 thx to Toni Lainson 19 years ago
arg@suckless.org af0034f3a5 fixed two comments 19 years ago
arg@suckless.org cd7ebaad25 removed dwm.h, just include C-files in config.h if you extend dwm, that's simplier and most flexible than all other possibilities 19 years ago
arg@suckless.org 8dc03d6e6b small cosmetic fix 19 years ago
arg@suckless.org 1dcb18c124 uncommented DEBUG CFLGAS/LDFLAGS 19 years ago
arg@suckless.org 206eb344e2 just making dwm.h saner 19 years ago
Anselm R. Garbe 04de5720e6 applied Eric Mertens patch to mainstream dwm, however this needs testing 19 years ago
Anselm R. Garbe 5a04edecb1 cleaned up dwm.c/dwm.h somewhat that it allows easier integration of patches 19 years ago
Anselm R. Garbe 24c125cc8a small comment 19 years ago
Anselm R. Garbe 0453c1d180 recreated dwm.h 19 years ago
Anselm R. Garbe 0b5c14cf59 added Mod1-Tab description to dwm.1 19 years ago
Anselm R. Garbe a73de0cff4 added antoszka's viewprev patch with some minor modifications, restored Client->tags as Bool *, however kept the static initialization of ntags and seltags (prevtags) - this seems to be the best compromise 19 years ago
Anselm R. Garbe eeea4ef583 applied Brandon MacDone's static initialization patch for seltags and Client->tags 19 years ago
Anselm R. Garbe 883e09b2eb removing NULL-terminating **tags definition in config.h 19 years ago
Anselm R. Garbe 7e25897f11 removed two spaces reported by Soleen 19 years ago
Anselm R. Garbe 95091dcad4 reverted Peters patch to tile, I will discuss the reasons at dwm@ 19 years ago
Anselm R. Garbe 57676994ea s/xterm/uxterm/ 19 years ago
Anselm R. Garbe 60adbab726 added hint for downloading dextra 19 years ago
Anselm R. Garbe c3eca4d14f fixed font definition 19 years ago
Anselm R. Garbe d1f4fbb469 fixed man page 19 years ago
Anselm R. Garbe 635b64384d fixed an issue in Peter's patch (it is no good idea to restack() all clients on enternotify() 19 years ago
Anselm R. Garbe bedbe59aaa applied Peter Hartlich's border collapse patch 19 years ago
Anselm R. Garbe 3f3086f8b8 improved tile() for the RESIZEHINTS == True case, now more space is consumed by the clients (esp. if those clients use increment handling heavily) 19 years ago
Anselm R. Garbe f92a4e45c4 fixed colors 19 years ago
arg@suckless.org 2fc8a13588 fixed inclusion order 19 years ago
Anselm R. Garbe 63725004f5 updated with my favorite colorscheme 19 years ago
Anselm R. Garbe e9348dcaca applied colors depend from lavishs proposal 19 years ago
Anselm R. Garbe fa857b2896 switching to white normal bg, renaming tag 9 into www, for static use in conjunction with ff 19 years ago
Anselm R. Garbe c77663fcb4 btw 4.6 will be the next release 19 years ago
Anselm R. Garbe 17d39ee014 renamed config.h into config.def.h, config.h will be created if not present, this seems less annoying after all 19 years ago
Anselm R. Garbe 8d1810c85b introduced ISTILE, which can be easily extended with other layout functions to allow reuse of setmwfact() and zoom() 19 years ago
Anselm R. Garbe 60444daa70 setmwfact and zoom check isarrange(floating) now, not !isarrange(tile) - this makes it easier to play well with bstack and nmtile patches 19 years ago
Anselm R. Garbe b0477c3017 Added tag 4.5 for changeset 2acc60d6dfe2 19 years ago
Anselm R. Garbe 24dae7d7e3 cosmetic fix 19 years ago
Anselm R. Garbe fa1ce22bc4 fixed a comment 19 years ago
arg@suckless.org 1fafcb1820 applied Peters patch, applied yiyus hint to initfont 19 years ago
Anselm R. Garbe 08c2d92480 applied Peter Hartlich's togglemax patch to allow toggling tiled clients to maximum 19 years ago
arg@suckless.org fe2775a15b made all stuff non-static - so you can choose wether to use dwm the static or the extern way when extending it 19 years ago
Anselm R. Garbe 01022b95d6 there might be envs which need Xlib.h 19 years ago
Anselm R. Garbe b2f276b0f9 Mod1-Button2 on a floating but not-fixed client will make it tiled again 19 years ago
Anselm R. Garbe d1ce3eac33 now tiled windows can be resized/moved, their floating state will be toggled implicitely 19 years ago
Anselm R. Garbe 9449ea3e00 some more rearrangements 19 years ago
Anselm R. Garbe 49197fe4bf ordered all functions alphabetically 19 years ago
Anselm R. Garbe 11cfff2dae corrected a misleading comment 19 years ago
Anselm R. Garbe a026617c65 macros which have been defined in config.h can only be used at function level, however you can nest code into config.h now for implementing a different layout (just for example), eg. #include "supertile.c" 19 years ago
Anselm R. Garbe a6df995b5d ordered function forward definitions 19 years ago
Anselm R. Garbe e041ff70b0 backporting my intro-comment of old dwm.h 19 years ago
Anselm R. Garbe 2d7bb8d7c9 removed grabkeys, not necessary 19 years ago
Anselm R. Garbe 0235a84ef2 micromizing dwm step 1 19 years ago
Anselm R. Garbe 2091200c95 new colorscheme (16-bit compliant) 19 years ago
Anselm R. Garbe 7e476fb86b moved bar-related stuff to bar.c (merged draw.c into that) 19 years ago
Anselm R. Garbe 9800518ae3 renamed drawstatus into drawbar 19 years ago
Anselm R. Garbe 5d831eaa94 renamed config.default.h into config.h 19 years ago
Anselm R. Garbe e0a6dee30d dist target only needs to add config.default.h 19 years ago
Anselm R. Garbe 73e2aba341 removed config.arg.h, only 1 config.h necessary 19 years ago
Anselm R. Garbe 9f88fd093c small changes of the colors 19 years ago
Anselm R. Garbe 0e515a06c8 other color 19 years ago
Anselm R. Garbe c4b3c0d979 using light colorscheme, preparing merge of config.arg.h with config.default.h 19 years ago
Anselm R. Garbe f3a5116248 I work with enabled RESIZEHINTS, simply because I force myself to continue the st development ;) 19 years ago
Anselm R. Garbe ae760f3f38 introduced new define RESIZEHINTS, which allows to enable/disable size hint handling in tiled resizals 19 years ago
Anselm R. Garbe 169d96ae8f 14px fonts drives me nuts 19 years ago
Anselm R. Garbe f651435061 Added tag 4.4.1 for changeset 7c117df5d202 19 years ago
Anselm R. Garbe a92cf496c1 prepared 4.4.1 bugfix and minor feature enhancement release 19 years ago
Anselm R. Garbe cc7970010b Added tag 4.4 for changeset 408014d21261 19 years ago
Anselm R. Garbe 67a1141f44 removed unnecessary include, prepared dwm-4.4 19 years ago
Anselm R. Garbe 8be3f3ec9e setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o 19 years ago
Anselm R. Garbe 5762e92994 reverted release CFLAGs 19 years ago
Anselm R. Garbe 36672d0401 removed the _DWM_PROPERTIES handling, reverted ban/unban to XMoveWindow(), and changed argument of setlayout to layout[N].symbol check 19 years ago
Anselm R. Garbe b18e684015 renamed char prop[] into buf[] 19 years ago
Anselm R. Garbe fc109ea8f7 fixed misappearance of iconified windows on SIGKILL 19 years ago
Anselm R. Garbe b975c47280 moved updatebarpos to screen 19 years ago
Anselm R. Garbe 47765f7286 added screen.c, removed layout.c and tag.c 19 years ago
Anselm R. Garbe 96d7fe16ea prepared merging layout.c and tag.c into screen.c 19 years ago
Anselm R. Garbe 78d1a22d4e small fix 19 years ago
Anselm R. Garbe 0c60620410 hmm I doubt the usefulness of storing this information... 19 years ago
Anselm R. Garbe 50be6c8b67 cleaned up settags-handling 19 years ago
Anselm R. Garbe 7d156dee1e applied Gottox mwfact patch 19 years ago
Anselm R. Garbe 55d8dda9f4 replaced static Layout *lt with static unsigned int sellayout... (will be adapted later when _DWM_CONFIG is serialized as root window property) 19 years ago
Anselm R. Garbe 86953bd682 renamed seltag into seltags 19 years ago
Anselm R. Garbe a923298d35 applied Jukka Salmi's setmwfact patch 19 years ago
Anselm R. Garbe 04dec4c943 made plural arrays 19 years ago
Anselm R. Garbe e40448fd63 fixed the issue observed by various people, that clients appeared on empty tags 19 years ago
Anselm R. Garbe 10bc0ce912 made tag/view/toggle{tag,view} work on pointer to tags-array, there was the need to define Key key[] not static to do this. split focusclient into focusnext/prev, fixed config.*.h's 19 years ago
Anselm R. Garbe e8792d95a1 applied Jukka's patch 19 years ago
Anselm R. Garbe feec92df84 fixed _DWM_CONFIG persistation, fixed the client disapperance bug during restarts 19 years ago
Anselm R. Garbe 10d13f01ff fififi 19 years ago
Anselm R. Garbe 8fcc4ff0ae fix of resize (thanks Sander for the hint!) 19 years ago
Anselm R. Garbe f2512243f4 fixed a typo 19 years ago
Anselm R. Garbe b32cd4454b small bugfix 19 years ago
Anselm R. Garbe 9e56e1ded6 tags should be persistent now during X server run 19 years ago
Anselm R. Garbe e4ad320599 small bugfix 19 years ago
Anselm R. Garbe a200c39635 made tile simplier 19 years ago
Anselm R. Garbe 77044e8765 made Layout a static struct in layout.c, added some convenience getters in layout.c, now lt->arrange accesses are not possible anymore, arrange() is the super-arrange function which sets up all layouts 19 years ago
Anselm R. Garbe 2feb3afe78 made resize more precise 19 years ago
Anselm R. Garbe 0937cc78bf moved floating to layout.c, kept tile.c outside 19 years ago
Anselm R. Garbe f6e41b0bc3 renamed MASTER into MWFACT, master into mwfact, and incmaster into addtomwfact 19 years ago
Anselm R. Garbe 2c6087e3d2 fixed a comment 19 years ago
Anselm R. Garbe 2d81b78b85 separated layout-specific stuff into separate .h and .c files which are included in config.h resp. config.mk - this allows writing layouts for dwm without any need to patch existing code 19 years ago
Anselm R. Garbe b5eea45a31 let not overlap the borders 19 years ago
Anselm R. Garbe aa53e39ec0 removed VRATIO, NMASTER, inc*(), renamed HRATIO into MASTER, see mailinglist for details 19 years ago
Anselm R. Garbe 4216bf801f slight change of my color scheme 19 years ago
Anselm R. Garbe 2cd1609770 removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways 19 years ago
Anselm R. Garbe 85c9ebf2fc applied Jukka's dwm.1 patch 19 years ago
Anselm R. Garbe 796925089c changed shortcuts as described on the mailinglist, added sanity checks for ratios during tile (fallback to wah if clients would get too small), documented that new stuff/shortcuts in dwm(1) 19 years ago
Anselm R. Garbe da91dfc948 small fix of static function order 19 years ago
Anselm R. Garbe 4135e34dfa I introduced {H,V}RATIO and inc{h,v,}ratio() functions - the default behaves like in dwm-4.3, config.arg.h shows how I prefer the ratio being handled (for the future I plan to change const char *arg into ..., and renaming Client into Win.) 19 years ago
Anselm R. Garbe 846128a498 removed a C++ style comment 19 years ago
Anselm R. Garbe e461e60997 implemented ratio tile as described on the mailinglist 19 years ago
Anselm R. Garbe 28c10330bd changed the fix of yesterday, the resize should only be necessary at manage() time, not on any unban() 19 years ago
Anselm R. Garbe 0d40590c2c foo 19 years ago
Anselm R. Garbe 8fda28be35 set client state to iconic on maprequest 19 years ago
Anselm R. Garbe a54cf2ecef changed ban/unban implementation to not move the windows anymore, but map/unmap them instead - PLEASE TEST THIS 19 years ago
Anselm R. Garbe 4b9337a01e removed shiftview(), if you scroll the views in the tag area, you can also use Button1 instead
removed focusclient([-]1) bound to scroll wheel - if you slightly move the mouse you will focus the first client anways which is in the way
19 years ago
Anselm R. Garbe 154497541d applied Jeroen's {clean,spell}.diff patches, thanks Jeroen! 19 years ago
Anselm R. Garbe e0cfe07648 applied Jeroen Schot's shiftview patch 19 years ago
arg@f00b4r 82be289985 applied dwm-windowscrolling patch 19 years ago
arg@f00b4r f2190c8fc2 Added tag 4.3 for changeset e0ec0d5d8b1e 19 years ago
arg@f00b4r c31648d15d restoring tip to be a working dwm again (switching FONT to terminus in config.arg.h) 19 years ago
Anselm R. Garbe 52250e7c1e please recheck this patch with Mathematica from Wolfram Research - lemme know if it fixes the geyish blob window bug 19 years ago
Anselm R. Garbe 51a94a2f14 removed crappy createnotify handler 19 years ago
Anselm R. Garbe c95bf3db9d applied restack patch of anydot, with slight changes 19 years ago
Anselm R. Garbe 4bf3b01953 I change the style of init somewhat, init as early as possible. 19 years ago
Anselm R. Garbe ff957d1eac uncommented creatnotify 19 years ago
Anselm R. Garbe 83aa110c6f added an creatnotify event handler 19 years ago
Anselm R. Garbe 5a1a2edf0e applied anudots [un]ban repair patch 19 years ago
Anselm R. Garbe b3419f49a3 making variable declarations in dwm.h extern, this seems to be more ansi compliant 19 years ago
Anselm R. Garbe 141beb2704 replaced BORDERPX with sel->border in togglemax(), in other places this is not possible. 19 years ago
Anselm R. Garbe 4e49d5a0ad Added tag 4.2 for changeset c13cb8c6b7a5 19 years ago
Anselm R. Garbe 2c6be7239f referred to LICENSE file 19 years ago
Anselm R. Garbe d934296476 Jukka also belongs to Copyright holders after all he has contributed and done for dwm, updated -v as well 19 years ago
Anselm R. Garbe 39ae286861 applied Jukkas patch 19 years ago
Anselm R. Garbe 59e65d1709 changed -v output (now also anydot and nsz are contained in this output) 19 years ago
Anselm R. Garbe 9fdd2cd1a9 added nsz to copyright holders as well, because he did a lot recently 19 years ago
Anselm R. Garbe e1deda9e04 added anydot to Copyright holders, because he contributed a lot recently 19 years ago
Anselm R. Garbe 199a601611 applied anydot's 3 minor patches, thank you anydot 19 years ago
Anselm R. Garbe 492c6f10fc applied Sanders patch 19 years ago
Anselm R. Garbe caa7ab5362 applied anydots proposal to let togglefloating restore fixed windows 19 years ago
Anselm R. Garbe f3e672efd8 fix if n < nmaster of remainer calculation for master windows 19 years ago
Anselm R. Garbe 02d5dddc00 rev 900, cool 19 years ago
Anselm R. Garbe c789941bba fo 19 years ago
Anselm R. Garbe e45b3ced67 calculating the remainder for master and stack area correctly 19 years ago
Anselm R. Garbe 5a9af492ae fixed issue reported by Christian Garbs 19 years ago
Anselm R. Garbe 32563abe86 removed the only one and superfloues strncmp 19 years ago
Anselm R. Garbe 70c7b432ea foo 19 years ago
Anselm R. Garbe 69dfcaa317 reverted last change after Sander pointed out the original decision 19 years ago
Anselm R. Garbe 6ee8e3e93b applied anydots remark of togglefloating() 19 years ago
Anselm R. Garbe 8439369db9 applied Szabolcs proposal for zoom() as well 19 years ago
Anselm R. Garbe 81658eaab3 applied Szabolcs proposal to simplify setlayout() 19 years ago
Anselm R. Garbe 81aebf8cae Added tag 4.1 for changeset 00f4180df72b 19 years ago
Anselm R. Garbe fa32f02a43 no that change breaks fullscreen apps 19 years ago
Anselm R. Garbe 598e22907e raise barwin in restack, that's the most elegant solution I think 19 years ago
Anselm R. Garbe 1e826ddd3e simplification 19 years ago
Anselm R. Garbe a967d7f664 raising the barwin has no effect becasue of restack 19 years ago
Anselm R. Garbe ce450c5bf1 fix 19 years ago
Anselm R. Garbe 8f5f7a5b5a barwindow raising 19 years ago
Anselm R. Garbe 5ad2828c57 using BarTop as fallback if BARPOS is set to BarOff as default for toggling 19 years ago
Anselm R. Garbe b896b58d6d removed strip, added -s to LDFLAGS 19 years ago
Anselm R. Garbe fef6c5c66b added new Mod1-b functionality to dwm(1) 19 years ago
Anselm R. Garbe 37e062b0ed another fix, call lt->arrange() in togglebar only 19 years ago
Anselm R. Garbe cf58091736 fixed bpos init 19 years ago
Anselm R. Garbe 2aef8b9b4c made bar togglalble 19 years ago
Anselm R. Garbe d96307cbe4 thanks to Jukka 19 years ago
Anselm R. Garbe 124866e269 added the GTK Save-As bug report to BUGS section of dwm(1) 19 years ago
Anselm R. Garbe ab3d6a7dfe applied dfenze cleanups, fixed some comments in dwm.h 19 years ago
Anselm R. Garbe c67dbb28e4 small fix of fix 19 years ago
Anselm R. Garbe b8bccb4ac5 fixed a potential security flaw 19 years ago
Anselm R. Garbe b6b2f584ec applied Maarten Maathuis recenter-patch for floating clients only requesting new width and height exceeding the screen space 19 years ago
Anselm R. Garbe f7bdb39d9e s/remain/remainder/ 19 years ago
Anselm R. Garbe ecd9c3e222 fixing remaining space calculation 19 years ago
Anselm R. Garbe 216099d072 thanks to Juka to check -Wall ;) 19 years ago
Anselm R. Garbe fc2e3eae20 next version is 4.1 19 years ago
Anselm R. Garbe f9e7a33019 applied patch of Paul Liu to allow onthefly resizing due to xrandr changes 19 years ago
Anselm R. Garbe 7c9fa2566f Added tag 4.0 for changeset 018c38468422 19 years ago
Anselm R. Garbe 22399a3bc0 fixed the border issue for mplayer, ff is definately broken when using F11 (fullscreen mode) 19 years ago
Anselm R. Garbe ad2508f957 touch border 19 years ago
Anselm R. Garbe b078599833 set border at manage time 19 years ago
Anselm R. Garbe 1e80207876 using pixelcarnage-monospace (proggyclean), because this is better to the eyes 19 years ago
Anselm R. Garbe 464fc2cd18 changed border handling 19 years ago
Anselm R. Garbe be8d6d40f6 changing order of c->border restorage 19 years ago
Anselm R. Garbe f0c2353393 I used 2006 in other places as well 19 years ago
Anselm R. Garbe a730213c3b yet another fix of copyright compactisition 19 years ago
Anselm R. Garbe 399993c6b5 making Copyright notices more compact 19 years ago
Anselm R. Garbe 4d318060a2 next version will be 4.0, so don't expect it within the next days 19 years ago
Anselm R. Garbe 540d5eed46 make also transients floating when we do not know the main window 19 years ago
Anselm R. Garbe 7d071ce2bd Added tag 3.9 for changeset 55478328b242 19 years ago
Anselm R. Garbe 93aeaa53c9 next version will be 3.9, but don't expect it this week 19 years ago
Anselm R. Garbe 06f9f346e6 add an additional check in resize() to prevent a crash of dwm 19 years ago
Anselm R. Garbe 5c48012ad2 Added tag 3.8 for changeset 2ea201354cf0 19 years ago
Anselm R. Garbe a686c9ccd2 we don't need to set the font all the time 19 years ago
Anselm R. Garbe 9ca5c3b108 some changes to updatesizehints, I don't change the aspect ratio algorithm now - I can't think, it is a mess 19 years ago
Anselm R. Garbe bab5b1178d removed sendevent 19 years ago
Anselm R. Garbe ee8fb0c6e4 Escape -s in dwm.1 19 years ago
Anselm R. Garbe 0d9d3e79e9 Added tag 3.7 for changeset baee494346e5 19 years ago
Anselm R. Garbe 12280f0253 prepared 3.7, ready to rambo 19 years ago
Anselm R. Garbe a58731e835 removed an unnecessary newline 19 years ago
Anselm R. Garbe 1df45593ed removed superfluous externs (except for tags, because tags is defined in the source) 19 years ago
Anselm R. Garbe 2122e39ce1 replacing Mod1-i with Mod1-Shift-j, Mod1-d with Mod1-Shift-k 19 years ago
Anselm R. Garbe e70139428a oops, small bugfix in my config 19 years ago
Anselm R. Garbe 3d1d75a224 default masterwidth should also be at 600 19 years ago
Anselm R. Garbe 35f08f4231 changed order if h/l 19 years ago
Anselm R. Garbe 0ea0343a63 well I agree to several people claiming h/j/k/l is the better default than Tab/S-Tab/g/s for focus and master resizing 19 years ago
Anselm R. Garbe 338c083858 renamed untiled into floating, keeping tiled instead of tiling (afaik tiled sounds more correct) - English speakers convinced me 19 years ago
Anselm R. Garbe 671442e89d hahaha, untiled and non-untiled sounded really cumbersome 19 years ago
Anselm R. Garbe 8d111632f5 made Fnt an anonymous inner struct 19 years ago
Anselm R. Garbe fe5acb939a made Fnt an anonymous inner struct 19 years ago
Anselm R. Garbe cac492b0e9 nah, I don't want 640 as MASTERWIDTH 19 years ago
Anselm R. Garbe ef9b3e173c using MASTERWIDTH=640 and 32px steps by default (incmasterw()) 19 years ago
Anselm R. Garbe 5a13632afb simplified focusclient() 19 years ago
Anselm R. Garbe 587100873a renamed versatile into untiled 19 years ago
Anselm R. Garbe 27b0595af7 merged focus{prev.next} into focusclient(1/-1) 19 years ago
Anselm R. Garbe 12d5a26fd2 made dwm.h more tidy (thx Jukka for the zoom() hint) 19 years ago
Anselm R. Garbe 89b7f1503e oops 19 years ago
Anselm R. Garbe 5711609203 small bugfix 19 years ago
Anselm R. Garbe 825b7c3eb1 fixed some issues due to the Arg->const char * transition 19 years ago
Anselm R. Garbe ba96131af0 restoring default keybindings as Sander complained 19 years ago
Anselm R. Garbe 2c477cf661 replaced Arg union with const char *arg, seems cleaner to me, even if we need atoi() in some places 19 years ago
Anselm R. Garbe 986ca73074 re-added xterm to config.default.h 19 years ago
Anselm R. Garbe 288098893c removed button4/5-bindings for incnmaster on mode label - that is misleading 19 years ago
Anselm R. Garbe cb9607c284 fixed order of key bindings described in dwm.1 19 years ago
Anselm R. Garbe 4bd4f421d3 status needs update even in togglemax() - since we got an indicator for this 19 years ago
Anselm R. Garbe 84432e6b36 reusing drawsquare for client title, empty square before title means versatile window, filled square before title means versatile maximized window. 19 years ago
Anselm R. Garbe 1a25414ace dwm draws a small caret before the client title if it's a versatile client 19 years ago
Anselm R. Garbe 3171371498 nah grouped keybindings by context 19 years ago
Anselm R. Garbe 92105e7862 fixed exit condition in togglemax() 19 years ago
Anselm R. Garbe 6ee9f13457 fixing missing extern declars in dwm.h for {de,at}tach() 19 years ago
Anselm R. Garbe 352cae4380 several changes, made togglemax extern and separated it from zoom() - moved zoom() and togglemax() into layout.c, changed void (*func)(Arg *) into void (*func)(Arg), changed default keybindings of focusnext/focusprev and incmasterw to h/j/k/l accordingly, made keys in config*h appear alphabetically (special keys first), renamed resizemaster into incmasterw, renamed MASTER into MASTERWIDTH 19 years ago
Anselm R. Garbe b3b58c08e4 just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair) 19 years ago
Anselm R. Garbe 204f0a340d optimizing background color of terminals 19 years ago
Anselm R. Garbe 78666b99b8 using 333 as background, hey proggyclean is really good 19 years ago
Anselm R. Garbe 0bdcf75e25 switching to 13pt proggyclean (this fits better my 1920x1200 resolution than 12pt terminus which is too small or 14pt terminus which is too fat) 19 years ago
Anselm R. Garbe f1009285d8 using smaller font 19 years ago
Anselm R. Garbe f76b3a4685 using a green selborder 19 years ago
Anselm R. Garbe 84ae6e12eb reverting to bg 555 19 years ago
Anselm R. Garbe 784659565a s/555/357/ for SELCOLOR 19 years ago
Anselm R. Garbe 7ae0c198b3 switching to urxvtcd for the moment (the uxterm flicker makes me headaches, st is really highest prio now) 19 years ago
Anselm R. Garbe dc6623728d Added tag 3.6.1 for changeset 20ec6976cee1 19 years ago
Anselm R. Garbe 7541f1ad49 creating 3.6.1 19 years ago
Anselm R. Garbe 74cbbe5f35 reverted accidental removal of sx, sy 19 years ago
Anselm R. Garbe 52f0b9e2e3 removed some global vars which should be static instead 19 years ago
Anselm R. Garbe 29c26b88e7 moved focus{next,prev} and nexttiled from client.c to layout.c (because those are not client-specific), moved toggleversatile() from layout.c to client.c (because those are client-specific) 19 years ago
Anselm R. Garbe f196b71e4d cleaned up and commented the config.*.h 19 years ago
Anselm R. Garbe ab83872134 Added tag 3.6 for changeset 75b1b25fe0d7e29400baf30568153f668324928b 19 years ago
Anselm R. Garbe ad4962c7eb fixed quoting and a comment 19 years ago
Anselm R. Garbe d180ba418c renamed setfont to initfont, getcolor to initcolor 19 years ago
Anselm R. Garbe 138b7fbd05 fixed order 19 years ago
Anselm R. Garbe e7508783e8 added draw.c again (except getcolor and setfont which are helpers in main.c) 19 years ago
Anselm R. Garbe f4d15b1fec separating drawsquare from drawtext, made drawtext extern 19 years ago
Anselm R. Garbe 355beb53f0 rechecked with OpenBSD 19 years ago
Anselm R. Garbe 8012fcf333 split screen.c into layout.c and tag.c (because the view is an implicit mixture of both) 19 years ago
Anselm R. Garbe 6bc4556ebd using eprint instead of fputs 19 years ago
Anselm R. Garbe 879241c05c replaced togglelayout with setlayout 19 years ago
Anselm R. Garbe 3794c62945 changed some odering in config*.h 19 years ago
Anselm R. Garbe 5a03daf47f renamed Client->versatile and Rule->versatile into Client->isversatile resp. Rule->isversatile 19 years ago
Anselm R. Garbe 6d5f67a092 renames swim[ming] into versatile 19 years ago
Anselm R. Garbe cee56d3863 renamed floating into swimming (this does not clash with C naming conventions and fits better the fish symbol) - also in man page 19 years ago
Anselm R. Garbe 7c4da24465 removed debug compile flags 19 years ago
Anselm R. Garbe cdbc84b9a8 introduced Layout struct 19 years ago
Anselm R. Garbe b2f895166a some more code polishing 19 years ago
Anselm R. Garbe ebe68f650a forgot an extern declaration 19 years ago
Anselm R. Garbe df9fd28f9a bugfix of transient handling 19 years ago
Anselm R. Garbe e9c49ddd7a removed procevent, more refactoring 19 years ago
Anselm R. Garbe f8415019d4 draw.c is useless (belongs to main.c now) 19 years ago
Anselm R. Garbe 238dd5d2b1 renamed view.c into screen.c 19 years ago
Anselm R. Garbe 64871a7045 renamed manage.c to view.c 19 years ago
Anselm R. Garbe 2e95bc0413 renamed Rule members, renamed RReg into Regexps 19 years ago
Anselm R. Garbe 4cdbd523e5 merged tag.c, view.c and tile.c to manage.c 19 years ago
Anselm R. Garbe b3d7e07f18 some more refactoring 19 years ago
Anselm R. Garbe 30af19d442 added some new convenience functions 19 years ago
Anselm R. Garbe 5d9146ff37 some more refactoring 19 years ago
Anselm R. Garbe 5cc27f1b3c introduced tile.c, some refactoring of functions 19 years ago
Anselm R. Garbe 39ed54a468 simplified configurerequest to a bare minimum, removed wrong ban() calls 19 years ago
Anselm R. Garbe b61f91361c fixed configurerequest according to Jukkas complains 19 years ago
Anselm R. Garbe 3167373512 fixed configurerequest according to the problem Jukka reported 19 years ago
Anselm R. Garbe 4cff744438 don't resize master if not in tiled mode 19 years ago
Anselm R. Garbe c3527bea57 removed useless space 19 years ago
Anselm R. Garbe de6695792a well, resize should be called in dofloat anyways ;) 19 years ago
Anselm R. Garbe 6e22ccf7b1 removed ugly ban(), extended resize() that it only resets the size if necessary, added border_width commit to manage() 19 years ago
Anselm R. Garbe 8a5f002c41 removed getnext/getprev, redundant 19 years ago
Anselm R. Garbe 3ce8c9f338 added ban() which takes care than a banned window is not banned again... (this reduces the overall ConfigureNotify's to clients) 19 years ago
Anselm R. Garbe 0d095ae2ff Added tag 3.5 for changeset 63ad05e7f9e1 19 years ago
Anselm R. Garbe 2d7f59424c simplifying regexps in config samples 19 years ago
Anselm R. Garbe e256afe31e made for/if/else constructs more consistent, some code polishing 19 years ago
Anselm R. Garbe 64cfebc5e7 made configurerequest more tidy 19 years ago
Anselm R. Garbe 7a095d0ce2 I didn't knew of c->isfixed, that should fix Jukkas issue with gkrellm ;) 19 years ago
Anselm R. Garbe 5052c538d9 making it more sure that transient checks will work in any case 19 years ago
Anselm R. Garbe 22d8c6fd18 stupid me, one needs to set c->{x,y,w,h} in configurerequest obviously ;) 19 years ago
Anselm R. Garbe 71857b87ee simplified configurerequest 19 years ago
Anselm R. Garbe 6ba400ee0f yet another consistency fix of dwm 19 years ago
Anselm R. Garbe 35e65ea640 I don't see any reason why we should select for input on override-redirect windows? 19 years ago
Anselm R. Garbe d0d986dd0e bugfix of bugfix (thx to Sander) 19 years ago
Anselm R. Garbe 9685e7dbc2 fixed a bug 19 years ago
Anselm R. Garbe 37f39afb8e during writing 2wm.1 I noticed some bugs in dwm.1 19 years ago
Anselm R. Garbe dc9f62f393 removing all EnterNotifys after resize 19 years ago
Anselm R. Garbe 7055315725 added pointer warp on drop in resize 19 years ago
Anselm R. Garbe fd995dac78 pneubeck pointed out an obvious thing, that a second p = stext + strlen(stext) - 1 is unnecessary 19 years ago
Anselm R. Garbe e5765cdd84 treating acroread and mplayer floating by default 19 years ago
Anselm R. Garbe 8d0e58f80b adapting John Grahor's patch to dwm-3.5 19 years ago
Anselm R. Garbe 8fcd1bfda8 fixed copyright notice in Makefile 19 years ago
Anselm R. Garbe e39e697998 fixed order of Bool declarations 19 years ago
Anselm R. Garbe d2dd58eabd added TOPBAR option for making the bar appear what the user likes 19 years ago
Anselm R. Garbe c6fc6b173d next version is 3.5 19 years ago
Anselm R. Garbe 4590d7877c making the bar appear at bottom 19 years ago
Anselm R. Garbe f577fe4e27 Added tag 3.4 for changeset 9ede7b2d2450 19 years ago
Anselm R. Garbe 9ed5de00b6 removed debug flags 19 years ago
Anselm R. Garbe 28ffff801b replaced getproto with a saner function, now old-school artifacts of WM times in the early 90s completely disappeared, no punned pointer warning anymore ;) 19 years ago
Anselm R. Garbe 44ef3f5a07 yet another fix 19 years ago
Anselm R. Garbe dafbd0dcb0 simplification 19 years ago
Anselm R. Garbe 2ddc78720a implemented aspect ratio support of windows 19 years ago
Anselm R. Garbe 7ece30ebc0 made some changes more concistent 19 years ago
Anselm R. Garbe 3d48f33025 got rid of LD (inspired by JGs patch to wmii) 19 years ago
Anselm R. Garbe 19fd903d40 applied apm's patch proposal, getting rid of XDrawLines 19 years ago
Anselm R. Garbe 5732e471ae Added tag 3.3 for changeset 0f91934037b0 19 years ago
Anselm R. Garbe 042297b27b applied Sander's drop_bh patch 19 years ago
Anselm R. Garbe a5cb80b86c handling WM_STATE seems to make DnD in gtk/qt apps working, well let's handle this in dwm as well 19 years ago
Anselm R. Garbe 7e98db251e regarding to http://plan9.bell-labs.com/sources/contrib/rsc/man.ps the BUGS section should appear after SEE ALSO section. 19 years ago
Anselm R. Garbe bced9077f9 renamed CAVEATS into BUGS 19 years ago
Anselm R. Garbe 82fed986f9 Added tag 3.2.2 for changeset d3876aa79292 19 years ago
Anselm R. Garbe 2c1db7ed35 prepared yet another hotfix release 19 years ago
Anselm R. Garbe ea4827a578 Added tag 3.2.1 for changeset f2cabc83a18f 19 years ago
Anselm R. Garbe 55be4d6137 hotfix release 3.2.1 19 years ago
Anselm R. Garbe 1f18466409 applied offscreen appearance hotfix 19 years ago
Anselm R. Garbe b65a1e3379 Added tag 3.2 for changeset 4ce65f61f01b 19 years ago
Anselm R. Garbe 87836d79ef renamed activescreen into selscreen 19 years ago
Anselm R. Garbe c8a12a0852 implemented Sanders remarks 19 years ago
Anselm R. Garbe 71b84c2114 small changes 19 years ago
Anselm R. Garbe edb2660a2e removed a blank line 19 years ago
Anselm R. Garbe 17ec726b49 this version should also work with cornercases (like unmanage during !issel, etc.) 19 years ago
Anselm R. Garbe 373b11de11 I think this is the best solution of multihead support 19 years ago
Anselm R. Garbe 04a2b74529 darker border 19 years ago
Anselm R. Garbe fcd98308ba this variant is known to work, but focus() is ugly - we need in general a better way to handle multihead, this issel-stuff looks awkward (maybe it might be a good idea to set sel to NULL but to introduce a Client *revert which is set if a screen is unfocused, have to think about it further). 19 years ago
Anselm R. Garbe b233089815 applied Sanders all5.patch (thanks for your weekend session, Sander!) 19 years ago
Anselm R. Garbe 201c56f6d3 leavenotify also don't needs the check 19 years ago
Anselm R. Garbe 1e051d71f5 deciding for focus(NULL); 19 years ago
Anselm R. Garbe ddc79603f9 replaced XSetBorder.../focus() 19 years ago
Anselm R. Garbe dee5ea2335 yet another multihead fix by Christof Musik 19 years ago
Anselm R. Garbe b1c9f5f144 I prefer BORDERPX=1 19 years ago
Anselm R. Garbe a542bdf658 personally I prefer 2px borders 19 years ago
Anselm R. Garbe 96e1b25c8c applied a modified version of Christof Musik's multihead patch (though this is not sure if it works in all cases, have to wait for an ACK by Christof) 19 years ago
Anselm R. Garbe caf5a16271 moved BORDERPX to config.*.h 19 years ago
Anselm R. Garbe 936e11fd54 Added tag 3.1 for changeset e1c8bef05e6e 19 years ago
Anselm R. Garbe 9715ba82aa removed erealloc (not used) 19 years ago
Anselm R. Garbe 3c35b90dd3 removed unnecessary bx, by, bw variables 19 years ago
Anselm R. Garbe 1d63030665 s/444/555/g - enlightened selected background 19 years ago
Anselm R. Garbe 6a5b41203e removed firefox rule from default.h 19 years ago
Anselm R. Garbe fbd310972d applied new default colors 19 years ago
Anselm R. Garbe 3059c9c507 applied sanders patch of my config 19 years ago
Anselm R. Garbe 3b18f17d4d Jukka, thanks for being faster than me! 19 years ago
Anselm R. Garbe 72faa1919e changed restack, to fix undrawed tag indicators 19 years ago
Anselm R. Garbe f8181f64e2 removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles) 19 years ago
Anselm R. Garbe 0045ad87df implemented new color scheme accordingly to Sanders proposal 19 years ago
Anselm R. Garbe ceea528eff removed mode label stuff 19 years ago
Anselm R. Garbe 6c5dc7017c removed client title bar 19 years ago
Anselm R. Garbe ae0b4fdd92 added missing space 19 years ago
Anselm R. Garbe b3cea4d388 nah the last change feels bad 19 years ago
Anselm R. Garbe d296081321 changed incnmaster shortcuts in config.arg.h 19 years ago
Anselm R. Garbe 177ed7e5de Added tag 3.0 for changeset 76b58d21ea98 19 years ago
Anselm R. Garbe f679125206 removing to allow nmaster=0 19 years ago
Anselm R. Garbe 58beead14d this looks better now ;) 19 years ago
Anselm R. Garbe e1811c37ca switching to arabic tags 19 years ago
Anselm R. Garbe a24a6701c8 small fix of initial numlockmask value 19 years ago
Anselm R. Garbe d108cfa7fc allowing nmaster=0 (I think that's a straight idea) 19 years ago
Anselm R. Garbe 92cb5ebb7c added Button{4,5} description to dwm.1 19 years ago
Anselm R. Garbe 653826572d added comment to %u in config.default.h, added Button{4.5} support on mode label 19 years ago
Anselm R. Garbe 5a5851bac2 reorganized 19 years ago
Anselm R. Garbe 1d4a24dae0 implemented nmaster appearance in mode label (using %u) 19 years ago
Anselm R. Garbe a768ea93fd Added tag 2.9 for changeset 3a5910fac3cc 19 years ago
Anselm R. Garbe c95fe6e24b I received Sander's complain just in time ;) 19 years ago
Anselm R. Garbe c75168186b changed status fg 19 years ago
Anselm R. Garbe 3a96c9a8d5 fofofo 19 years ago
Anselm R. Garbe 1617b95598 extended default tags to 1-9 19 years ago
Anselm R. Garbe 726ae5bf6d small grammar fix of dwm.1 19 years ago
Anselm R. Garbe 3e11b38349 changed a term in dwm.1 19 years ago
Anselm R. Garbe 16ed879524 using shorter tags, using mon instead of cert 19 years ago
Anselm R. Garbe 20d7b5d058 roman numerals suck badly, reverting 19 years ago
Anselm R. Garbe 11a08b9cfc switching to roman tags, I need more tags 19 years ago
Anselm R. Garbe c2b753d917 I inc/decrease on the fly, feels better 19 years ago
Anselm R. Garbe 6c767072a3 allowing swap() for first master client 19 years ago
Anselm R. Garbe e9cfae7aba prevent pop() if first sel == nexttiled(clients) 19 years ago
Anselm R. Garbe 7ac0de8350 removed swap(), implemented pop for everything 19 years ago
Anselm R. Garbe 0b7c0f10ee preserving c1->snext and c2->snext in swap() as well. 19 years ago
Anselm R. Garbe 51f6405b0d fixing some minor issues 19 years ago
Anselm R. Garbe 6096f8a113 removed the term clients from dwm.1 19 years ago
Anselm R. Garbe d939f301fa adding some prevention that master clients get smaller than bh 19 years ago
Anselm R. Garbe 8c4623da80 changed shortcuts to M-i and M-d 19 years ago
Anselm R. Garbe 0faaba04a5 allowing zoom within master area as well 19 years ago
Anselm R. Garbe ec7a5ffff1 changed plus key to MODKEY-Shift-plus (US-layout restrictions ;) 19 years ago
Anselm R. Garbe 98afb7b9d0 I prefer two master windows by default 19 years ago
Anselm R. Garbe 06bae9dfb7 added MODKEY-{plus,minus} shortcuts (increasing/decreasing master clients) 19 years ago
Anselm R. Garbe 0b80d1842d experimental version which allows master clients being increased/decreased 19 years ago
Anselm R. Garbe d7ec23a5db fixed comment of drawclient() 19 years ago
Anselm R. Garbe 2cf8ef9520 switching bakc to my previous color favorit 19 years ago
Anselm R. Garbe 184471b4bb renamed drawtitle into drawclient 19 years ago
arg@mig29 21898c6049 using more thinkpad compliant colors 19 years ago
arg@mig29 6a9300e815 changed arg's color scheme 19 years ago
arg@mig29 ac24f132db corrections 19 years ago
arg@mig29 cb4aa5bc35 next version will contain updated copyright notice 19 years ago
arg@mig29 beac539f31 Added tag 2.8 for changeset 107719a9ce3bd0c79f9f1f626596eb338a276561 19 years ago
arg@mig29 b5d297f02f fixed cleanup, using clients instead of sel 19 years ago
arg@mig29 9056d7ea88 changed comment of updatesizehints 19 years ago
arg@mig29 ebd17e4827 renamed updatesize into updatesizehints (thx to Sander for this hint) 19 years ago
arg@mig29 7e59c89250 small simplification to dotile() (thx to Ross for this hint) 19 years ago
arg@mig29 9e4e4d9022 migrated arg's config.h to new dmenu command line options 19 years ago
arg@mig29 71fd06f843 added Solaris hints 19 years ago
arg@mig29 58e6866d86 Added tag 2.7 for changeset 21951c0dfbae5af68ed77821a4d87253ee91803f 19 years ago
arg@mig29 c7da124149 applied Sanders patch 19 years ago
arg@mig29 21bd90d7d3 fixed man page, status bar displays EOF instead of "broken pipe" 19 years ago
arg@mig29 c8f96b5b4c added the java odyssee to CAVEATS section 19 years ago
arg@mig29 ded60365d4 removed Client->grav 19 years ago
arg@mig29 629647dfee removed gravitate for the moment 19 years ago
arg@mig29 4ca3d861f0 disabling configure() during resize 19 years ago
arg@mig29 069e7a6e24 made gravitate effectless, waiting for complains ;) 19 years ago
arg@mig29 ac6e34ea06 fixed diagnostic error message 19 years ago
arg@mig29 a308b7507a removed the hardcoded fixed fallback, it is useless in non-Latin1 environments 19 years ago
arg@mig29 630e7ff26f we don't use the term clients anymore, windows is the better term 19 years ago
arg@mig29 3764ab471b Added tag 2.6 for changeset 5308dd22b6ee8e3218c81d9e7e4125f235bb5778 19 years ago
arg@mig29 a3319c6f8e found compromise for fonts 19 years ago
arg@mig29 66c699a701 nah, people should define 'fixed' to be compatible with their locale 19 years ago
arg@mig29 aaf1e44da9 using a UTF-8 capable fixed font 19 years ago
arg@mig29 1ef2307ec4 switching to uxterm again, I get kretze from this urxvt crap 19 years ago
arg@mig29 d42c3ba2dc with this patch everything works fine for me 19 years ago
arg@mig29 4b06155873 don't use Xlocale crap, let's use locale.h instead 19 years ago
arg@mig29 857d825eeb using the portable Xmb+UTF-8 way of life, will see if this works well... 19 years ago
arg@mig29 6b345353e3 improved the memory leak prevention 19 years ago
arg@mig29 ab3b3a8f61 making terminus more explicit a regular font (otherwise olique font might be used in some setups like mine). 19 years ago
arg@mig29 71b82fb1f6 also setting LC_CTYPE only 19 years ago
arg@mig29 9bd9ea423e enforcing using fontsets even if they are incomplete for some encodings 19 years ago
arg@mig29 99964398e7 Added tag 2.5.1 for changeset c7f84f23ec5aef29988dcdc4ec22a7352ee8f58e 19 years ago
arg@mig29 7009ebfa69 hotfix of a serious crashing bug 19 years ago
arg@mig29 760e23dd3a Added tag 2.5 for changeset dcbbfabc8ecc5f33a6cc950584de87da1a368045 19 years ago
arg@mig29 c53d9d516a applied Manuel's regex patch 19 years ago
arg@mig29 7739e6b466 made squares equally sized, and 1px bigger 19 years ago
arg@mig29 4881857458 if client is focused, the emptysquare don't needs to be drawed 19 years ago
arg@mig29 c73d5cb7b6 and the winner is 19 years ago
arg@mig29 6458803d21 sander1 proposal 19 years ago
arg@mig29 6e72d781f7 dood 19 years ago
arg@mig29 4e926a9ef2 darkening the fg colors somewhat 19 years ago
arg@mig29 4ba3cfaee9 less obtrusive indicator (only a top line) 19 years ago
arg@mig29 e655e8a7d5 final2 indicator 19 years ago
arg@mig29 c34e4e4b39 removing the -1 on final indicators, looks cleaner 19 years ago
arg@mig29 a678ee6365 final indicators 19 years ago
arg@mig29 49f0ee329d changed things like I described in last mail 19 years ago
arg@mig29 0c9d9a3d94 improved tag indicator 19 years ago
arg@mig29 89e1acb0bb removed viewall signature from dwm.h 19 years ago
arg@mig29 c2ed26b711 next version will be 2.5 19 years ago
arg@mig29 42fd392e05 removed viewall(), replaced with view(-1); added tag(-1) to tag a client with all tags (new key combo MODKEY-Shift-0) 19 years ago
arg@mig29 e06447ee88 Added tag 2.4 for changeset 32b246925086910d63147483160281a91a47479f 19 years ago
arg@mig29 683dabe5e6 extended dwm.1 with last change 19 years ago
arg@mig29 3aff96177c togglefloat should only work in dotile mode (thanks to Sander for this hint) 19 years ago
arg@mig29 0a915eba8f applied Alex Elide's tricky patch, thanks! 19 years ago
arg@mig29 19dcbc5717 returning to old Key struct 19 years ago
arg@mig29 d2a4952956 applied Szabolcs Nagy's patch (thank you!) 19 years ago
arg@mig29 0c97b21b61 applied patch by Jukka 19 years ago
arg@mig29 19390b1a91 changing Key.func into Key.func[NFUNCS], this allows sequences execution of functions per keypress (avoids implementing useless masterfunctions which call atomic ones) 19 years ago
arg@mig29 8dc86051df added man page entry 19 years ago
arg@mig29 46d5f9d1bf added togglefloat to hg tip (i consider this useful for some cases), using MODKEY-Shift-space as shortcut 19 years ago
arg@mig29 35e96b8deb applied Jukka's patch preventing some cornercases and making the EOF error message correct 19 years ago
arg@mig29 2210ea7e3b applied yet another proposal of Manuel 19 years ago
arg@mig29 61a1910f91 applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading. 19 years ago
arg@mig29 27ef73507b applied Jukka's stdinread patch 19 years ago
arg@mig29 2b35fb643e next version will be 2.4 19 years ago
arg@mig29 478f6f95f1 applied Manuels patch (thanks to Manuel!) 19 years ago
arg@mig29 44411d2d48 small fix of man page 19 years ago
arg@mig29 a2175cf71a Added tag 2.3 for changeset 719b37b37b0df829d7cf017ac70e353088fe5849 19 years ago
arg@mig29 4606d218c3 using the term 'indicated' instead of 'higlighted' 19 years ago
arg@mig29 d37d0f24e6 updated man page with the bottom right corner indicator 19 years ago
arg@mig29 321e8d51ed fififif 19 years ago
arg@mig29 78f4b51757 added a similiar patch to Daves solution to indicate if there are clients with a specific tag 19 years ago
arg@mig29 7d168a2621 returning to old bar colorization behavior, like sander proposed for consistency reasons 19 years ago
arg@mig29 931e712eac applied Gottox patches 19 years ago
arg@mig29 4ec04209e0 using iso10646 explicitely in arg's config.h 19 years ago
arg@mig29 82ddba88a2 Added tag 2.2 for changeset 7e92f58754ae6edb3225f26d754bd89c1ff458cf 19 years ago
arg@mig29 52a8cc8d46 nah reverting to my prev style, that's really the best 19 years ago
arg@mig29 d175df8aa3 applying aluminium style for arg's config.h 19 years ago
arg@mig29 b003a35fde applied Gottox' windowarea patch 19 years ago
arg@mig29 df1a0f9445 using a more blue-ish color... 20 years ago
arg@mig29 5b07b85838 making the selected color more lightning 20 years ago
arg@mig29 f320cd203b next release will be 2.2 20 years ago
arg@mig29 f78c16f8c6 applied Jukkas patch 20 years ago
arg@mig29 0c5f47e720 Added tag 2.1 for changeset a2c465098a3b972bbed00feda9804b6aae1e9531 20 years ago
arg@mig29 4b5b3d90af renamed resizecol into resizemaster 20 years ago
arg@mig29 2cce4b95cd applied Gottox patch to simplify the resizing of col, instead of resizing the current area, it only resizes the master area in the future (seems more predictable) 20 years ago
arg@mig29 8e6eb52196 Added tag 2.0 for changeset 12deea36603da407e3f32640048846a3bd74a9ec 20 years ago
arg@mig29 04b633ddf3 make sure that changing sx has no impact on snapping 20 years ago
arg@mig29 b76561a212 in a 1920x1200 setup 40 pixels of snap value are much better than 20 20 years ago
arg@mig29 51c7589c87 fixed stupid bug of snap-to-screen 20 years ago
arg@mig29 99785382ae changing snap priority 20 years ago
arg@mig29 dc1690ce0f removed useless abs() calls 20 years ago
arg@mig29 b6614261ea added screen-border snapping in floating mode, feels quite well 20 years ago
arg@mig29 91e569ca37 and another fix 20 years ago
arg@mig29 0f395c1b11 applied sanders try2 patch 20 years ago
arg@mig29 2b13e7466f applied sanders max size fix 20 years ago
arg@mig29 0982e47408 stupid urxvt needs bg to highlight selections in a sane way, though that makes sense to some extend 20 years ago
arg@mig29 b93ebcf42f reverting to original 20 years ago
arg@mig29 a08d83ba62 applied sander's config.*h nitpick patch 20 years ago
arg@mig29 2b7c275ce8 some other change 20 years ago
arg@mig29 040d0f48a0 apply small fix to prevent apps like mplayer wandering when toggling fullscreen 20 years ago
arg@mig29 724f35a664 forgot to use -tr, which actually prevents the ugly flicker (using xsetroot -solid black as root window pixmap to make this work nicely) 20 years ago
arg@mig29 6f3872edbd using MASTER 600 again, it is definately better, and using urxvtc for the moment (it doesn't flickers on refreshes, but this is not because of Marc Lehmann, it is because of the original rxvt code) 20 years ago
arg@mig29 87324e680c changing MASTER in config.arg.h from 600 to 550 per thousand 20 years ago
arg@mig29 c2b908f603 my new 1920x1200 Z61p arrived, now I can use terminus in a sane way... 20 years ago
Anselm R. Garbe d7734f996f moved MOUSEMASK into event.c (not used in other places) 20 years ago
Anselm R. Garbe 8b68890650 now being at v2.0 20 years ago
Anselm R. Garbe b60406cb9b using lsx instead of Jukka's shell construct 20 years ago
Anselm R. Garbe ce9a9934ec hotfix 20 years ago
Anselm R. Garbe 720b2abe17 Added tag 1.9 for changeset a5567a0d30112822db2627a04a2e7aa3b6c38148 20 years ago
Anselm R. Garbe 5983c00b95 do* has no Arg arument anymore (never called directly) 20 years ago
Anselm R. Garbe 6651dd7fd9 code polishing, removed unnecessary newlines 20 years ago
Anselm R. Garbe acdea31916 yet another small fix and simplification of dotile 20 years ago
Anselm R. Garbe 10885d349a removed the stack position stuff 20 years ago
Anselm R. Garbe 1c1d09f3e9 small boundary check fix 20 years ago
Anselm R. Garbe 0384faeee5 changing MASTER value from percent into per mill 20 years ago
Anselm R. Garbe 6cca3999c8 Added tag 1.8 for changeset c71952fa3c7ca848ec38a6923b5c6d0e18fff431 20 years ago
Anselm R. Garbe 69408d384d simplified dotile(), removed misleading line 20 years ago
Anselm R. Garbe 4aea423f06 final fix for man page 20 years ago
Anselm R. Garbe 6fc8a63041 keep master ratio on resizecol -> arrange 20 years ago
Anselm R. Garbe 2583a7c0d1 yet another simplification of dotile() 20 years ago
Anselm R. Garbe 0ef6e3103c simplified dotile() 20 years ago
Anselm R. Garbe 7c052b37c8 applied resizecol fix by Jukka 20 years ago
Anselm R. Garbe d9c475d7f4 Button3 click on mode label toggles stack position now 20 years ago
Anselm R. Garbe c8e57332d1 applied dave's highlight patch for big fonts 20 years ago
Anselm R. Garbe c045459917 using ff tiled again, seems to work perfectly with new bottom stack 20 years ago
Anselm R. Garbe e0f64e63db applied ality's hardcode-0 patches 20 years ago
Anselm R. Garbe dddd58a8cd added symbols for different modes 20 years ago
Anselm R. Garbe 010fd21b20 removed useless updatemaster 20 years ago
Anselm R. Garbe 1802fad2f9 documented the new behavior in man page 20 years ago
Anselm R. Garbe f833d109d1 fixed small offset issue 20 years ago
Anselm R. Garbe 7225c99903 fixed the z-layer issue described on mailinglist 20 years ago
Anselm R. Garbe 36178933ed removed the direction flipping 20 years ago
Anselm R. Garbe ad0da9a571 small fix of a corner case 20 years ago
Anselm R. Garbe 6646468125 small change 20 years ago
Anselm R. Garbe fee8df6ccf added the new dotile as described on ml 20 years ago
Anselm R. Garbe 8fa47ac679 prelim of dotile() 20 years ago
Anselm R. Garbe b427a2c6cb I changed sanders patch to fix the ff issue to be simplier, though it needs testing if this really fixes the issue 20 years ago
Anselm R. Garbe 14d05e7c72 first step to a more flexible dotile() algorithm 20 years ago
Anselm R. Garbe a118a57fe3 renamed column into area 20 years ago
Anselm R. Garbe 02cea3b47e small change to README 20 years ago
Anselm R. Garbe 1c2d673ded applied Jukkas patch 20 years ago
Anselm R. Garbe c34df2c1b6 Added tag 1.7.1 for changeset d5ad819f2a66a40fa75dd2e44429f3bfc884d07b 20 years ago
Anselm R. Garbe 6092aa977e fixing the settags issue, preparing 1.7.1 20 years ago
arg@zarathustra c9cc2b385a removed an unused var 20 years ago
arg@zarathustra b39d0c521a Added tag 1.7 for changeset 4dbdb61c8b8ce21dee5c7050a6b103855964ed20 20 years ago
arg@mmvi e87bed6df2 updated README 20 years ago
arg@mmvi 4ee05b3294 small change 20 years ago
arg@mmvi e81eb46a78 added slight error check to getcolor 20 years ago
arg@mmvi f315832f75 small fix 20 years ago
arg@mmvi 97ced11e53 changed order of colordefs in config.h's, changed config.arg.h to fit to new dmenu 20 years ago
arg@mmvi 4d6c4d36ce removed useless debug info 20 years ago
arg@mmvi b4d53bf194 added configure(), but this doesn't really fix those frking broken SDL apps 20 years ago
arg@mmvi 67bc08d1b9 slight change of event handling order 20 years ago
arg@mmvi bcb07de750 simplified mouse resizals 20 years ago
arg@mmvi 7d7cde0fd6 applied sanders jukka patch 20 years ago
arg@mmvi 6b25d06d7d applied Jukkas patch 20 years ago
arg@mmvi cff951c650 removed all dotile checks 20 years ago
arg@mmvi 114cc3ec02 applied Jukkas remark (dunno if this is correct though) 20 years ago
arg@mmvi 3c4b7672a8 applied jukkas patch 20 years ago
arg@mmvi 6de149eb22 man page fix 20 years ago
arg@mmvi da909dd1e8 ismax toggling on mouse based action 20 years ago
arg@mmvi 67986e81ee hotfix 20 years ago
arg@mmvi 346bdea946 small change to achieve Jukka's last proposal 20 years ago
arg@mmvi 05c10c5776 fixed issue pointed out by Jukka 20 years ago
arg@mmvi b2cb925d99 patched resizemouse according to sanders remark 20 years ago
arg@mmvi 9fb6502b3b small man page fix 20 years ago
arg@mmvi 9eb226ff78 sander check this 20 years ago
arg@mmvi e34c4eaf61 slight change to config.arg.h (I use ff floating) 20 years ago
arg@mmvi 9e75bcfc75 updated man page 20 years ago
arg@mmvi d800ec05ff implemented the maximization as I described on the mailinglist, this feels better to me. 20 years ago
arg@mmvi bda53ac6ad reviewed client.c 20 years ago
arg@mmvi 4230932563 reviewed util.c 20 years ago
arg@mmvi f17e898bd1 fixed a nuance in dwm.1 20 years ago
arg@mmvi 886b2088f1 improved intro comment in dwm.h, updated config.mk 20 years ago
arg@mmvi 551d6bb23d some simplifications to intro in dwm.h 20 years ago
arg@mmvi d504005e91 Added tag 1.6 for changeset ad3fa2d185426c51fd5deceae809770363f8d33c 20 years ago
arg@mmvi 2511b5c675 added visibility check to enternotify as well 20 years ago
arg@mmvi 28aba061ec offscreen client appearance fixes 20 years ago
arg@mmvi 8e37c78ce3 focus() enforces visibility of a client if not NULL 20 years ago
Anselm R. Garbe ca68975ff8 removed useless inclusion 20 years ago
Anselm R. Garbe 529be52fea fixed executing of dmenu output to handle args correctly 20 years ago
Anselm R. Garbe ca65478c89 removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined) 20 years ago
Anselm R. Garbe a1e9362d38 some more simplifications of intro comment in dwm.h, this should suffice for comments in dwm 20 years ago
Anselm R. Garbe cbfc69e310 made introduction comment in dwm.h shorter 20 years ago
Anselm R. Garbe 1d7674bb22 applied Christof Musik's multihead patch for a pathologic cornercase 20 years ago
Anselm R. Garbe e6cc22396a added a general comment to dwm.h how dwm is basically organized 20 years ago
Anselm R. Garbe 868159fd0a some other simplifications 20 years ago
Anselm R. Garbe b597fa4637 fixed some other comments, now also the code side seems to be at a level to be reviewed by experienced programmers 20 years ago
Anselm R. Garbe d2d394eccf small change to comments, renamed two set* functions in client.c into update* 20 years ago
Anselm R. Garbe 438beeabde small fix 20 years ago
Anselm R. Garbe 281f0981a6 added some comments 20 years ago
Anselm R. Garbe 6ff346bed9 Added tag 1.5 for changeset 728c9089b079721b43c3347124639a29baa22a97 20 years ago
Anselm R. Garbe 0925dd588c applied sanders patch of not manipulating sel 20 years ago
Anselm R. Garbe 6f20315dff really small changes to dwm.1 20 years ago
Anselm R. Garbe 2e68f22118 hotfix 20 years ago
Anselm R. Garbe 8aa860d270 simplified unmanage 20 years ago
Anselm R. Garbe 15abade272 using a global stack for focus recovery on arrange() - seems to work great 20 years ago
Anselm R. Garbe 7ab8c87281 made markups in dwm.1 more consistent 20 years ago
Anselm R. Garbe 4ff8f71643 small addition to dwm.1 20 years ago
Anselm R. Garbe d22abeee86 this patch keeps track of global z-layer order of clients which are floating or if floating mode is enabled 20 years ago
Anselm R. Garbe a33150eb4b no this is better 20 years ago
Anselm R. Garbe fd00b3a186 does this preserve z order for anthony? 20 years ago
Anselm R. Garbe e8389a4cc0 maybe this might work 20 years ago
Anselm R. Garbe 6078d756bc Added tag 1.4 for changeset 3cff9403766bf83a9fc2a0aef230115d68de2a8e 20 years ago
Anselm R. Garbe 57c49fe867 prepared dwm-1.4 update 20 years ago
Anselm R. Garbe c60de1acd4 drawstatus even if no client exists 20 years ago
Anselm R. Garbe 69b738c097 sanders solution is convincing and elegant 20 years ago
Anselm R. Garbe da0b2a2f31 seems to preserve floating client z-layer order (even with reorder() calls) 20 years ago
Anselm R. Garbe 2378a558a2 Added tag 1.4 for changeset a6b8994af16491220db0199623bd57d061e06143 20 years ago
Anselm R. Garbe f18ed615ae small fix 20 years ago
Anselm R. Garbe f6656fffb4 made args mode symbols the default ones (the default ones look too ugly) 20 years ago
Anselm R. Garbe aaad7bfd15 moved transient_for tag inheritance to settags 20 years ago
Anselm R. Garbe 0915da8842 no, reodering floating clients definately breaks the manage() policy which attaches all clients zoomed (otherwise higher-weight clients couldn't be attached zoomed, which sucks) 20 years ago
Anselm R. Garbe 0d0e8bde13 no, ordering floating clients at the end seems better 20 years ago
Anselm R. Garbe 838a1ff950 fix 20 years ago
Anselm R. Garbe e1315fd40c this makes sure the issue mentioned by sander 20 years ago
Anselm R. Garbe 52a3ab1042 fixing zoom 20 years ago
Anselm R. Garbe a82e7b765e fixing two off-by-ones 20 years ago
Anselm R. Garbe 0ed0fa4d5b ach ich will auch Alt-s 20 years ago
Anselm R. Garbe ec85fddb9a applied checking existance of >2 tiles patch (proposed by sander) to zoom and resizecol 20 years ago
Anselm R. Garbe 3a1343a245 renamed resizetile into resizecol 20 years ago
Anselm R. Garbe 9066ee2eb4 well ok, added Mod-s to default bindings (however, I don't need it) 20 years ago
Anselm R. Garbe 40bd21ce63 s/growcol/resizetile/g 20 years ago
Anselm R. Garbe 4633fbec61 right, multihead issue is not involved with growcol 20 years ago
Anselm R. Garbe 25060031a5 hotfix 20 years ago
Anselm R. Garbe c7ae6334b7 applied a fix related to Sanders remark to growcol 20 years ago
Anselm R. Garbe eac04882b4 sanders toggletag patch is much more elegant 20 years ago
Anselm R. Garbe 6499fc4f93 I really need column growing, now pushing upstream 20 years ago
Anselm R. Garbe 04f27a5438 don't access sel in restack without checking for NULL (multihead crashing bug) 20 years ago
Anselm R. Garbe 1b3903d6e9 fixing c->weight handling 20 years ago
Anselm R. Garbe cc05093b0d removed some useless tags 20 years ago
Anselm R. Garbe 6436dd4438 after 1.3 20 years ago
Anselm R. Garbe 26c50c780e Added tag 1.3 for changeset f5f5cbf016a94b48a8fe9c47f0736e96d166d5d4 20 years ago
Anselm R. Garbe 01d13b0c49 retagged 20 years ago
Anselm R. Garbe f15f45a9f8 simplified manage 20 years ago
Anselm R. Garbe 1b2e149cb4 removed html crap 20 years ago
Anselm R. Garbe 6136640ec9 Added tag 1.3 for changeset dd44dc937e8b0a46abf1a15a333dba5304e4fe89 20 years ago
Anselm R. Garbe 95d8423823 hotfixing with sanders hint 20 years ago
Anselm R. Garbe de6411c338 Added tag 1.3 for changeset 6413ea66b1c2496cfc2173fe58df67cb965eb1da 20 years ago
Anselm R. Garbe e316cf53f6 fixing the issue that new clients appear lowered 20 years ago
Anselm R. Garbe c107db57db removed unused vars 20 years ago
Anselm R. Garbe d39d00057c reducing focus calls (sanders patch) 20 years ago
Anselm R. Garbe 26157e6973 applied Sanders max_and_focus.patch 20 years ago
Anselm R. Garbe 6d22782e8f simplified buttonpress 20 years ago
Anselm R. Garbe 1836b6740d applied sanders patch 20 years ago
Anselm R. Garbe 924a088812 reorder was misssing in Ross version of viewall 20 years ago
Anselm R. Garbe bab575c868 changed shortcut into Mod1-0 20 years ago
Anselm R. Garbe daae3bba50 added viewall to mainstream (only Ross Mohns version, not the toggle) 20 years ago
Anselm R. Garbe 05fbbbd8dc implemented Button2 press on tags for toggletag on the focused client 20 years ago
Anselm R. Garbe 4c368bcd24 applied sanders patch to remove unnecessary commit() 20 years ago
Anselm R. Garbe 9927b9e642 small fix in config.arg.h 20 years ago
Anselm R. Garbe 1b492dffc8 Added tag 1.2 for changeset e3179ce2b90451d2807cd53b589d768412b8666b 20 years ago
Anselm R. Garbe 140be1b4b3 prepared 1.2 20 years ago
Anselm R. Garbe 79259acc12 now using Salmi's menu command 20 years ago
Anselm R. Garbe 5a3bea2d69 removed a warning reported by Jukka 20 years ago
Anselm R. Garbe 30d928591d simplified configurerequest 20 years ago
Anselm R. Garbe 70a3e62257 now dwm enforces max screen size also in tiled mode on non-floating clients which are maximized 20 years ago
Anselm R. Garbe 6828fba7a0 fixed 20 years ago
Anselm R. Garbe aa1bda8164 configurenotify remembers max geom now, and restores this if necessary, however it accepts to touch the max size on configurerequest, this shouldn't break fillscreen apps (tested with mplayer) 20 years ago
Anselm R. Garbe 157ea539a2 applied patch similiar proposed by dave tweed 20 years ago
Anselm R. Garbe c3c94c0e0a improved selection policy 20 years ago
Anselm R. Garbe 9d73909075 still something wrong with reorder() 20 years ago
Anselm R. Garbe 016c54196e this algorithm seems to keep order for any scenario 20 years ago
Anselm R. Garbe 5056bb952d fix client position in list also on tag and toggletag 20 years ago
Anselm R. Garbe 8a6679b3b4 added attach/detach functions which don't attach at the begin of list, but at the slot of a first match of the tags of a client 20 years ago
Anselm R. Garbe 7b6d5ff298 removed crappy variables 20 years ago
Anselm R. Garbe 846850914d changed config.arg.h - I really need the 4th tag 20 years ago
Anselm R. Garbe 4e6c513ac2 updated html page 20 years ago
Anselm R. Garbe db9cda6a7d Added tag 1.1 for changeset 44a55e6e46bf6c231780b09d919977d6f01083de 20 years ago
Anselm R. Garbe a50b15a9e9 added a comment to spawn 20 years ago
Anselm R. Garbe 0a25fe9188 applied sanders focus_ patches 20 years ago
Anselm R. Garbe 2dd5212a79 applied sanders somepatches.patch 20 years ago
Anselm R. Garbe 00e95e1f38 oh frking dear big font... 20 years ago
Anselm R. Garbe 0a0759132c term enlightened 20 years ago
Anselm R. Garbe 5cf362c7d0 switching to darker colorscheme with larger font 20 years ago
Anselm R. Garbe 413be1112a patched arg.h 20 years ago
Anselm R. Garbe 8233dc8568 new stuff 20 years ago
Anselm R. Garbe afa8b3bcd9 switching to dark colors again 20 years ago
Anselm R. Garbe c518345f40 updated man page of dwm 20 years ago
Anselm R. Garbe afe6ac9923 changed order of options 20 years ago
Anselm R. Garbe e995c1b532 trying a different configuration 20 years ago
Anselm R. Garbe e36929292e removed small 1px gap, somehow without it things feel better 20 years ago
Anselm R. Garbe 03128f78df oops 20 years ago
Anselm R. Garbe 7d4a5e654c fixed typo 20 years ago
Anselm R. Garbe 41ba7a7984 s/TILED/TILE/g 20 years ago
Anselm R. Garbe aa471f2d65 removed a bunch of lines, made mode symbols configurable 20 years ago
Anselm R. Garbe d37dfa1bed changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress() 20 years ago
Anselm R. Garbe 9f35cc52fe small fix to separate client title from right-most tag 20 years ago
Anselm R. Garbe f1fe19bc2b restored config.arg.h 20 years ago
Anselm R. Garbe b55bd709ee new color stuff/new rendering stuff 20 years ago
Anselm R. Garbe 9833610356 back to 3 colors 20 years ago
Anselm R. Garbe de7fc0011e fixed 20 years ago
Anselm R. Garbe 2e0c767d74 3->4 colors 20 years ago
Anselm R. Garbe a5379e901c Added tag 1.0 for changeset bbc98e77ae89a7c9232a5be0835f60ea00d8036e 20 years ago
Anselm R. Garbe a039d51d5f prepared dwm-1.0 20 years ago
Anselm R. Garbe 60b3dceccf yet another fix 20 years ago
Anselm R. Garbe c2ac851b90 small man page fix 20 years ago
Anselm R. Garbe c976bc6c2c found less intrusive way 20 years ago
Anselm R. Garbe 2e834e941f changing tag indicator through underline 20 years ago
Anselm R. Garbe 77e5f3167c black on light is really better, I notice this after all 20 years ago
Anselm R. Garbe 7e597ae204 updated man page 20 years ago
Anselm R. Garbe c39df91ab9 applied tag drawing change to man page 20 years ago
Anselm R. Garbe af1158d105 implemented right tag drawing in the status bar and titlebars 20 years ago
Anselm R. Garbe b739721d9e removed a blank line 20 years ago
Anselm R. Garbe 7711ab6707 eliminated sentinel warning 20 years ago
Anselm R. Garbe d370c32f69 small fix of man page 20 years ago
Anselm R. Garbe d6a6eca71d implemented class:inst:title matching 20 years ago
Anselm R. Garbe 39ffc18635 applied zero_to_five patch 20 years ago
Anselm R. Garbe 3e972ec84d tags appear in the left again 20 years ago
Anselm R. Garbe b5159dfd2f separated setup stuff into main.c:setup() - this makes main() more readable 20 years ago
Anselm R. Garbe 07c2659806 updated man page 20 years ago
Anselm R. Garbe dc83b9e988 titlebars contain tags in the right now 20 years ago
Anselm R. Garbe 8b4bc8270a fixed default key bindings (indexes of tags were screwed up) 20 years ago
Anselm R. Garbe 0ff80653d3 rearranged getproto 20 years ago
Anselm R. Garbe 352e1b4c81 removed winprop (merged into getproto) 20 years ago
Anselm R. Garbe aa13727067 separated several functions into view.c 20 years ago
Anselm R. Garbe 595028614b removed DEFTAG 20 years ago
Anselm R. Garbe 6a3ae5e26a removed badmalloc (thx for the pointer to Uriel) 20 years ago
Anselm R. Garbe 8c334ee078 rxvt is quite slow under OpenBSD 20 years ago
Anselm R. Garbe f60fe2a4f9 font fix 20 years ago
Anselm R. Garbe b112257bf2 slight change of my config.h 20 years ago
Anselm R. Garbe eb88adcd8a fixed 20 years ago
arg@localhost.10kloc.org 950a1ab5af windows which have set transient_for hint inherit the transient_for window tags now 20 years ago
arg@localhost.10kloc.org 1b9fe55025 after switching to OpenBSD again, I switched back to a saner color scheme 20 years ago
Anselm R.Garbe 2272df9d31 applied Sanders focus_* patches, removed the unnecessary clean-prefix from the new function names 20 years ago
Anselm R.Garbe 08d85d6d66 small renamings of two static functions 20 years ago
Anselm R.Garbe b43989207a small changes to dwm.1, rearranged order within main event loop 20 years ago
Anselm R.Garbe 2eebebf262 applied Sanders patch 20 years ago
Anselm R.Garbe 8c1fffe106 made a new client position strategy similiar to that one proposed by Sander, but which takes top bar into account 20 years ago
Anselm R.Garbe 5e9acbc952 fixed a bug reported by sander 20 years ago
Anselm R.Garbe a420ceab50 applied the shorter xprop command 20 years ago
Anselm R.Garbe 0e1c649dca centering apps only if transient_for is not(!) set 20 years ago
Anselm R.Garbe 67c2124fa9 fixed issue Sander reported 20 years ago
Anselm R.Garbe a635743c6d corrected order of cleanup code 20 years ago
Anselm R.Garbe b5c2412d84 condition was insufficient 20 years ago
Anselm R.Garbe ad2e77d635 fixed issue reported by sander 20 years ago
Anselm R.Garbe a20b10d01f added general centralization rule for new clients (works around various borken apps) 20 years ago
Anselm R.Garbe 4cc0551948 removed leading ; 20 years ago
Anselm R.Garbe 56130c3689 added sample command to config.default.h to highlight how to query class:instance info with a one-liner of shell commands 20 years ago
Anselm R.Garbe 14f7380308 applied another config.mk patch made by sander 20 years ago
Anselm R.Garbe 727449d1e7 we close stdin as well 20 years ago
Anselm R.Garbe 80bf2aa559 simplified sort | uniq into sort -u (on my boxes all sort support -u) 20 years ago
Anselm R.Garbe b9cd0c4331 fixing small bug in config.mk 20 years ago
Anselm R.Garbe f77a87137c adding forgetten whitespace 20 years ago
Anselm R.Garbe 65dfe8fdce added gmane archive to dwm.html 20 years ago
Anselm R.Garbe e3bb595d77 Added tag 0.9 for changeset fae61afa861755636c4a1070694209ace8efbb6c 20 years ago
Anselm R.Garbe a1682b8927 prepared dwm-0.9 20 years ago
Anselm R.Garbe 24d91e3b8a extended cleanup 20 years ago
Anselm R.Garbe ce04a66528 applied Sanders changes to config.arg.h 20 years ago
Anselm R.Garbe df74b26e5d applied jk_to_tab patch 20 years ago
Anselm R.Garbe b6ad663f87 changed main event loop 20 years ago
Anselm R.Garbe ee31e38dc7 removed NUMLOCKMASK, added dynamically calculated numlockmask instead 20 years ago
Anselm R.Garbe 442334641e added Sander to LICENSE (since he has contributed/revised big portions) 20 years ago
Anselm R.Garbe dfa5ea6360 applied viewsel.patch 20 years ago
Anselm R.Garbe 3e06edeb5d applied sanders man page patch, removed button2 from bar click 20 years ago
Anselm R.Garbe 78b050c13c applied sanders tag()/toggletag() fixes 20 years ago
Anselm R.Garbe 4ad20ffc2c fixed 20 years ago
Anselm R.Garbe 57e6e3bb80 added missing arrange 20 years ago
Anselm R.Garbe 19da197f58 changed replacetag into toggletag 20 years ago
Anselm R.Garbe 666fae97e6 added some flicker prevention 20 years ago
Anselm R.Garbe 823fb1118a remove unnecessary XSync 20 years ago
Anselm R.Garbe db1d62e184 changed order of selecting input at root window 20 years ago
Anselm R.Garbe d26ffc7fa3 removed finished message 20 years ago
Anselm R.Garbe 0f3acce042 added mappingnotify event for kb refreshes 20 years ago
Anselm R.Garbe 9eef9f7b02 removed unneecessary crap 20 years ago
Anselm R.Garbe aff4c787f4 applied the saner patch (removed the pathetic one) 20 years ago
Anselm R.Garbe fe3dfbbe90 pplied Sanders appendtag patch 20 years ago
Anselm R.Garbe 2ffdc1936c some other small fixes 20 years ago
Anselm R.Garbe 0fe52c63ea removed ungrabkeys again (because of sander's mail) 20 years ago
Anselm R.Garbe 28a52197c4 fixed string cutting 20 years ago
Anselm R.Garbe 2c0d1cc87b fixed a core dump 20 years ago
Anselm R.Garbe 375a251d16 implemented ungrabkeys() which is called in cleanup() 20 years ago
Anselm R.Garbe d4b7a9a373 implemented restack behavior (floats are on top in tiled mode) 20 years ago
Anselm R.Garbe 4d67199a4b fixed string cutting in draw.c 20 years ago
Anselm R.Garbe 95766d6241 applied Sanders LD and resize patches 20 years ago
Anselm R.Garbe 4cb78a170c removed viewnext/viewprev 20 years ago
Anselm R.Garbe 2c66b422e7 supplying NULL args in select 20 years ago
Anselm R.Garbe e571de83e9 reducing ConnectionNumber calls to a bare minimum 20 years ago
Anselm R.Garbe 4bb89e2cb1 updated man page, added CAVEATS section 20 years ago
Anselm R.Garbe 349cadacf6 made shortcuts like proposed by Sander, renamed viewextend to toggleview (more clear) 20 years ago
Anselm R.Garbe 292ccc4c43 implemented viewextend and added M-S-C-n shortcuts for extending the current view... updated man page (works great!) nice feature 20 years ago
Anselm R.Garbe d7413ffd2d implement multi-tag selection through button3 click on the specific tag 20 years ago
Anselm R.Garbe 50729a2e73 after some days of experimenting with grey background, I finally give up and switch to white on black ;) 20 years ago
Anselm R.Garbe a3e3f0b9ed applied Sanders fixes to dwm.1 20 years ago
Anselm R.Garbe 45aea23355 fixed dwm.1, added Mod1-Shift-c (was missing for an odd reason) 20 years ago
Anselm R.Garbe 975b459c17 simplified drawtext 20 years ago
Anselm R.Garbe 2b35faee06 updated dwm(1) 20 years ago
Anselm R.Garbe 84818bdbb5 upgraded version info 20 years ago
Anselm R.Garbe 895902b57a applied Sander's patch as well 20 years ago
Anselm R.Garbe 7d4184dc5c realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead 20 years ago
Anselm R.Garbe 8278f0a6be implemented focusprev on button1 press in the bar, and focusnext on button3 press in the bar 20 years ago
Anselm R.Garbe d3969634ac simplified unmanage 20 years ago
Anselm R.Garbe 735ca9ccd6 removed the if(clients) check from popping code 20 years ago
Anselm R.Garbe 4ee661d908 added dwm favicon 20 years ago
Anselm R.Garbe 9fce8215b7 applied Sanders zoom_update patch 20 years ago
Anselm R.Garbe 6521c2dd41 respecting inc hints in floating mode on togglemax 20 years ago
Anselm R.Garbe 9ee9ce7e14 reverting last patch, that sucks, I don't care about retarded apps like gvim 20 years ago
Anselm R.Garbe 9d39da6452 togglemax repects inc-hints (this way gvim can be toggle'maxed as well) 20 years ago
Anselm R.Garbe 0228dcd58f applied grammar correction by ILF 20 years ago
Anselm R.Garbe 3d35ea99bb Added tag 0.8 for changeset cd15de32e173f8ce97bfe1c9b6607937b59056b4 20 years ago
Anselm R.Garbe 0680c76a6f prepared 0.8 20 years ago
Anselm R.Garbe c3e5f5cc9a updated html 20 years ago
Anselm R.Garbe 1c620d27d8 fixed the issue reported by sander (gaps at left columns button due to round-offs) 20 years ago
Anselm R.Garbe fde45ebed8 applied sumik's multihead patch 20 years ago
Anselm R.Garbe 4bd0d33f57 applied sander's patch 20 years ago
Anselm R.Garbe 00255728aa readded border color, this sucks least 20 years ago
Anselm R.Garbe 4b0328f209 drawing border with fg color 20 years ago
Anselm R.Garbe 30561a0161 removed unnecessary border color 20 years ago
Anselm R.Garbe a4c4998c8b swapping my default colors (bg with fg) 20 years ago
Anselm R.Garbe 8e053b6476 made terminals darker, that is better indeed 20 years ago
Anselm R.Garbe b79b5facb1 disallow zoom on maximized clients 20 years ago
Anselm R.Garbe c53f0fca91 added zoom on Mod1-Button1 on managed clients only (there is no moving possible) 20 years ago
Anselm R.Garbe c225e1afc2 removed NET_ACTIVE_WINDOW handling 20 years ago
Anselm R.Garbe 92e55c7c53 implemented NET_ACTIVE_WINDOW support 20 years ago
Anselm R.Garbe c86f131681 fixed typo 20 years ago
Anselm R.Garbe e943234d09 it always takes a while until one sticks to a colorscheme, but this one feels well 20 years ago
Anselm R.Garbe 9fc24e371b default colors are best 20 years ago
Anselm R.Garbe cac467d52c without borders it looks cleaner 20 years ago
Anselm R.Garbe 04f17d2669 red is easier to my eyes with ffffaa bg 20 years ago
Anselm R.Garbe dff15a02f7 using a better colorscheme (ffffaa is the best background for black) 20 years ago
Anselm R.Garbe 42277b1110 applied Sanders tiny patches 20 years ago
arg@10ksloc.org 095f9e143e removed some " 20 years ago
arg@10ksloc.org 9fbb2ebb90 I really only need 3 tags 20 years ago
arg@10ksloc.org dbcf87ce76 added a trailing '.' to shortcut descriptions in dwm(1) 20 years ago
arg@10ksloc.org 4250c26e9b changed signature of drawtext 20 years ago
arg@10ksloc.org e48de30516 applied grabbing-- and shell_minimal 20 years ago
arg@10ksloc.org 1f0060caa3 updated screenshot section 20 years ago
arg@10ksloc.org c732cc90ab changed font size, I'm not blind... 20 years ago
arg@10ksloc.org 4e2c5b5f25 small fix of a comment 20 years ago
arg@10ksloc.org d9386a0c07 typo fix 20 years ago
arg@10ksloc.org 66e16c92d3 applied Sanders man page/Makefile patch 20 years ago
arg@10ksloc.org 6a8e176df1 settle with grey 20 years ago
arg@10ksloc.org 632c7f3410 next version is 0.8 20 years ago
arg@10ksloc.org 045f1840e0 made my colors tasting better with the background 20 years ago
arg@10ksloc.org 45d16d090b status box should have a border in my eyes 20 years ago
arg@10ksloc.org 525c5ff4d8 next attempt for w on black switch 20 years ago
arg@10ksloc.org 5952157c3b Added tag 0.7 for changeset 3fb41412e2492f66476d92ce8f007a8b48fb1d2a 20 years ago
arg@10ksloc.org f777d21899 prepared dwm.html 20 years ago
arg@10ksloc.org 82064af2d7 added stripping to dwm target in Makefile 20 years ago
arg@10ksloc.org d54444cfd7 changed getproto, maybe that might fix the killclient issue reported on the list 20 years ago
arg@10ksloc.org 525ef3c178 applied endless loop prevention on zoom() 20 years ago
arg@10ksloc.org 5ef6ef1bac updated man page 20 years ago
arg@10ksloc.org f4208e7cac small fix of the last commit 20 years ago
arg@10ksloc.org ecc95c903b using -Os again, zoom is ignored in floating mode or on floating clients 20 years ago
arg@10ksloc.org a207949b65 mouse grab needs also to grab for combinations of numlock/lockmask 20 years ago
arg@10ksloc.org 86d12249dd slight fix 20 years ago
arg@10ksloc.org b098c94ed4 small performance tweak ;) 20 years ago
arg@10ksloc.org 6a39a496d0 fixed xterm font change (all other related apps should work fine with this fix as well) 20 years ago
arg@10ksloc.org 3d73084b5e fixed view-change bug reported on the list 20 years ago
arg@10ksloc.org 12b1d439e4 no need for -g anymore, regexp matching works now 20 years ago
arg@10ksloc.org 1076161bf3 fixed dmenu link (thx to deifl) 20 years ago
arg@10ksloc.org e21d93b7bd switched to regexp matching for Rules 20 years ago
arg@10ksloc.org f504aea132 fixed a bug in dmenu call 20 years ago
arg@10ksloc.org 9955ddc978 using execl now, argv changed, using cmd and const char defs directly in the KEYS struct 20 years ago
arg@10ksloc.org 0dfe729f90 added dmenu to dwm.html 20 years ago
arg@10ksloc.org 8f698bd4cc small stylistic fix 20 years ago
arg@10ksloc.org 99b126d0af removed CONFIG 20 years ago
arg@10ksloc.org a2d56f6dce make config.h not a time dependence 20 years ago
arg@10ksloc.org db876f9fb0 removed rm config.h from clean 20 years ago
arg@10ksloc.org 05a618b06e added gmake compliance 20 years ago
arg@10ksloc.org 72608f0d5a s/tag2/two/g 20 years ago
arg@10ksloc.org bba044de4f applied Jukka's diff 20 years ago
arg@10ksloc.org 4d55eee754 applied Sanders Makefile patch 20 years ago
arg@10ksloc.org d41b232b52 stylistic chnage 20 years ago
arg@10ksloc.org b35575574b removed TLast tag enum, now tags is simple defined as char *[] array, the rest is calculated correctly, rules take an int array for the tags 20 years ago
arg@10ksloc.org 666b4563a0 hotfix of settags 20 years ago
arg@10ksloc.org 7315bb08ad using SRC instead of *.c 20 years ago
arg@10ksloc.org f80688f1c7 changed the files included in make dist 20 years ago
arg@10ksloc.org dc5c070c44 applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat 20 years ago
arg@10ksloc.org 8cc7f3bace changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum) 20 years ago
arg@10ksloc.org 5d3fd3707b implemented the idea presented by Sander for dwm target 20 years ago
arg@10ksloc.org 1bf0c4a8e7 changing MASTERW value from 52 to 60 (in both, default and arg), I feel this is better now 20 years ago
arg@10ksloc.org 863656d2bc fixed a type in README, and patched config.mk 20 years ago
arg@10ksloc.org f1a34ae1e4 updated dwm.html 20 years ago
arg@10ksloc.org 3000cad507 Added tag 0.6 for changeset c11f86db4550cac5d0a648a3fe4d6d3b9a4fcf7e 20 years ago
arg@10ksloc.org 0f8249f262 removed config.h (stupid hg) 20 years ago
arg@10ksloc.org b515765216 removed the CONFIG variable from config.mk, renamed config.h into config.default.h, after first clone/extract one needs to copy config.default.h to config.h, that is easier than always heavy typing make CONFIG=blafasel 20 years ago
arg@10ksloc.org 85e6d59956 added Acroread.* and MPlayer.* to config.arg.h rules 20 years ago
arg@10ksloc.org 95e8d12b71 made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander 20 years ago
arg@10ksloc.org a55f0e12fe new stuff 20 years ago
arg@10ksloc.org 0cf3ba0eab dwm is now exit, if stdin is closed due broken pipe 20 years ago
arg@10ksloc.org 1d85225952 implemented focus on enterwindow on titlebars 20 years ago
arg@10ksloc.org 3af6434085 applied Sanders patches (numlock2) 20 years ago
arg@10ksloc.org 57871415c1 reverting to old resize policy 20 years ago
arg@10ksloc.org 52021851d1 new resize stuff (using XConfigureWindow instead of XSendEvent) 20 years ago
arg@10ksloc.org 080a38d62d renamed WM_PROTOCOL_DELWIN into PROTODELWIN 20 years ago
arg@10ksloc.org ab7a11c0c7 renamed ARRANGE into DEFMODE 20 years ago
arg@10ksloc.org d8675f6f30 small fixes to dwm.html 20 years ago
arg@10ksloc.org eff4478c2d simplified README 20 years ago
arg@10ksloc.org 81683351f0 removed 1 missing LOC 20 years ago
arg@10ksloc.org b38905b004 removed 5LOC 20 years ago
arg@10ksloc.org d9a6a3b5d2 removed artefacts of single-linked list (thanx to Jukka, I must have been mad) 20 years ago
arg@10ksloc.org 7c2e3bb67d cleaned config.*h to prevent some confusion 20 years ago
arg@10ksloc.org b01a51a844 saved 2LOC 20 years ago
arg@10ksloc.org 77f8c075c4 uppercasing all define'd values (uppercase-prefixed should only be enum field qualifiers) 20 years ago
arg@10ksloc.org 33b4821cd6 fixed config.h files 20 years ago
arg@10ksloc.org a73a882806 centralized/externalized configuration to config.h 20 years ago
arg@10ksloc.org 57416beefe applied Cedric's NumLock patch 20 years ago
arg@10ksloc.org 1b63f832c5 applied Jukkas prev/next patch with XK_{h,l} 20 years ago
arg@10ksloc.org 7b5638f61d applied Sanders patches 20 years ago
arg@10ksloc.org 937cabfa0a committed a patch which fixes the hints of Jukka 20 years ago
arg@10ksloc.org deba5069e5 updated html 20 years ago
arg@10ksloc.org 956113b295 Added tag 0.5 for changeset 22213b9a2114167ee8ba019a012e27da0422a61a 20 years ago
arg@10ksloc.org db98a7d60f prepared 0.5 20 years ago
arg@10ksloc.org 0464e42231 some cleanups/fixes inspired by Jukka Salmi's feedback 20 years ago
arg@10ksloc.org 4970ef938e simplified main.c, switching back to single urxvt usage 20 years ago
arg@10ksloc.org f85b163899 s/sleep 5/sleep 2/ 20 years ago
arg@10ksloc.org 2b66f7afb1 changed the status info README hint (more simple now, no extra script necessary) 20 years ago
arg@10ksloc.org 67b3083dfd s/0.5/0.6/ - my steps are wider than the reality 20 years ago
arg@10ksloc.org 0c7bcc24cb applied sanders maxfix patch 20 years ago
arg@10ksloc.org 98c6a92eb5 added a note how to achieve status info in the bar 20 years ago
arg@10ksloc.org ba59bc8b9f preparing 0.6 which will be available in the evening after sanders patch approx. 20 years ago
arg@10ksloc.org cd8d8e1208 sanitization of several clunky stuff, removed heretag (rarely of use), simplified pop(), changed shortcuts to always contain MODKEY 20 years ago
arg@10ksloc.org 04eb016e78 applied sanders no_sizehints for tiled mode patch (thx!) 20 years ago
arg@10ksloc.org 0a4342098b serious mistake in pop() (forgot to set c->prev to NULL on pop) 20 years ago
arg@10ksloc.org 72707c2fae using double-linked list in order to get correct prev focus handling 20 years ago
arg@10ksloc.org 06dc514bc7 added yet another CUTOMIZE tag 20 years ago
arg@10ksloc.org 2b5553b1eb cleaned the CUSTOMIZE flags 20 years ago
arg@10ksloc.org 4688ad181d made status bar drawing more robust, implemented togglemax and togglemode, works quite well 20 years ago
arg@10ksloc.org dc5d967ee6 cleaned up code 20 years ago
arg@10ksloc.org fe3756c8e1 Added tag 0.4 for changeset eb3165734f00fe7f7da8aeebaed00e60a57caac9 20 years ago

@ -1,3 +0,0 @@
d31b5ad96b0ba7b5b0a30928fcf000428339a577 0.1
0a6472e2203994bc5738d40a340d26f7ec9d6062 0.2
7e66082e5092fb0bccd18a3695a0bec52c80fdb2 0.3

@ -1,21 +1,37 @@
MIT/X Consortium License
(C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
© 2006-2019 Anselm R Garbe <anselm@garbe.ca>
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
© 2007-2011 Peter Hartlich <sgkkr at hartlich dot com>
© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com>
© 2007-2009 Christof Musik <christof at sendfax dot de>
© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
© 2007-2008 Enno Gottox Boland <gottox at s01 dot de>
© 2008 Martin Hurton <martin dot hurton at gmail dot com>
© 2008 Neale Pickett <neale dot woozle dot org>
© 2009 Mate Nagy <mnagy at port70 dot net>
© 2010-2016 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2010-2012 Connor Lane Smith <cls@lubutu.com>
© 2011 Christoph Lohmann <20h@r-36.net>
© 2015-2016 Quentin Rameau <quinq@fifth.space>
© 2015-2016 Eric Pruitt <eric.pruitt@gmail.com>
© 2016-2017 Markus Teich <markus.teich@stusta.mhn.de>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

@ -1,61 +1,51 @@
# dwm - dynamic window manager
# (C)opyright MMVI Anselm R. Garbe
# See LICENSE file for copyright and license details.
include config.mk
SRC = client.c draw.c event.c main.c tag.c util.c
SRC = drw.c dwm.c util.c
OBJ = ${SRC:.c=.o}
MAN1 = dwm.1
BIN = dwm
all: options dwm
@echo finished
options:
@echo dwm build options:
@echo "LIBS = ${LIBS}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
${CC} -c ${CFLAGS} $<
${OBJ}: dwm.h
${OBJ}: config.h config.mk
config.h:
cp config.def.h $@
dwm: ${OBJ}
@echo LD $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
rm -f dwm *.o core dwm-${VERSION}.tar.gz
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
dist: clean
mkdir -p dwm-${VERSION}
cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
cp -R LICENSE Makefile README config.def.h config.mk\
dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
tar -cf dwm-${VERSION}.tar dwm-${VERSION}
gzip dwm-${VERSION}.tar
rm -rf dwm-${VERSION}
install: all
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
@for i in ${BIN}; do \
chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
done
@echo installed executable files to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
@for i in ${MAN1}; do \
chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
done
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f dwm ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
uninstall:
for i in ${BIN}; do \
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
done
for i in ${MAN1}; do \
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
done
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
${DESTDIR}${MANPREFIX}/man1/dwm.1
.PHONY: all options clean dist install uninstall

@ -1,7 +1,6 @@
dwm - dynamic window manager
----------------------------
dwm is an extremly fast, small, and dynamic X11 window manager.
============================
dwm is an extremely fast, small, and dynamic window manager for X.
Requirements
@ -11,8 +10,8 @@ In order to build dwm you need the Xlib header files.
Installation
------------
Edit config.mk to match your local setup. dwm is installed into
the /usr/local namespace by default.
Edit config.mk to match your local setup (dwm is installed into
the /usr/local namespace by default).
Afterwards enter the following command to build and install dwm (if
necessary as root):
@ -31,10 +30,19 @@ the DISPLAY environment variable is set correctly, e.g.:
DISPLAY=foo.bar:1 exec dwm
This will start dwm on display :1 of the host foo.bar.
(This will start dwm on display :1 of the host foo.bar.)
In order to display status info in the bar, you can do something
like this in your .xinitrc:
while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
do
sleep 1
done &
exec dwm
Configuration
-------------
The configuration of dwm is done by customizing source code,
grep for CUSTOMIZE keyword.
The configuration of dwm is done by creating a custom config.h
and (re)compiling the source code.

@ -1,447 +0,0 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
#include <stdlib.h>
#include <string.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
/* static functions */
static void
resizetitle(Client *c)
{
int i;
c->tw = 0;
for(i = 0; i < TLast; i++)
if(c->tags[i])
c->tw += textw(c->tags[i]);
c->tw += textw(c->name);
if(c->tw > c->w)
c->tw = c->w + 2;
c->tx = c->x + c->w - c->tw + 2;
c->ty = c->y;
if(c->tags[tsel])
XMoveResizeWindow(dpy, c->title, c->tx, c->ty, c->tw, c->th);
else
XMoveResizeWindow(dpy, c->title, c->tx + 2 * sw, c->ty, c->tw, c->th);
}
static int
xerrordummy(Display *dsply, XErrorEvent *ee)
{
return 0;
}
/* extern functions */
void
ban(Client *c)
{
XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
XMoveWindow(dpy, c->title, c->tx + 2 * sw, c->ty);
}
void
focus(Client *c)
{
Client *old = sel;
XEvent ev;
sel = c;
if(old && old != c)
drawtitle(old);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
void
focusnext(Arg *arg)
{
Client *c;
if(!sel)
return;
if(!(c = getnext(sel->next, tsel)))
c = getnext(clients, tsel);
if(c) {
higher(c);
c->revert = sel;
focus(c);
}
}
void
focusprev(Arg *arg)
{
Client *c;
if(!sel)
return;
if((c = sel->revert && sel->revert->tags[tsel] ? sel->revert : NULL)) {
higher(c);
focus(c);
}
}
Client *
getclient(Window w)
{
Client *c;
for(c = clients; c; c = c->next)
if(c->win == w)
return c;
return NULL;
}
Client *
getctitle(Window w)
{
Client *c;
for(c = clients; c; c = c->next)
if(c->title == w)
return c;
return NULL;
}
void
gravitate(Client *c, Bool invert)
{
int dx = 0, dy = 0;
switch(c->grav) {
case StaticGravity:
case NorthWestGravity:
case NorthGravity:
case NorthEastGravity:
dy = c->border;
break;
case EastGravity:
case CenterGravity:
case WestGravity:
dy = -(c->h / 2) + c->border;
break;
case SouthEastGravity:
case SouthGravity:
case SouthWestGravity:
dy = -(c->h);
break;
default:
break;
}
switch (c->grav) {
case StaticGravity:
case NorthWestGravity:
case WestGravity:
case SouthWestGravity:
dx = c->border;
break;
case NorthGravity:
case CenterGravity:
case SouthGravity:
dx = -(c->w / 2) + c->border;
break;
case NorthEastGravity:
case EastGravity:
case SouthEastGravity:
dx = -(c->w + c->border);
break;
default:
break;
}
if(invert) {
dx = -dx;
dy = -dy;
}
c->x += dx;
c->y += dy;
}
void
higher(Client *c)
{
XRaiseWindow(dpy, c->win);
XRaiseWindow(dpy, c->title);
}
void
killclient(Arg *arg)
{
if(!sel)
return;
if(sel->proto & WM_PROTOCOL_DELWIN)
sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]);
else
XKillClient(dpy, sel->win);
}
void
lower(Client *c)
{
XLowerWindow(dpy, c->title);
XLowerWindow(dpy, c->win);
}
void
manage(Window w, XWindowAttributes *wa)
{
int diff;
Client *c;
XSetWindowAttributes twa;
Window trans;
c = emallocz(sizeof(Client));
c->win = w;
c->x = c->tx = wa->x;
c->y = c->ty = wa->y;
c->w = c->tw = wa->width;
c->h = wa->height;
c->th = bh;
if(c->y < bh)
c->y = c->ty = bh;
c->border = 1;
c->proto = getproto(c->win);
setsize(c);
XSelectInput(dpy, c->win,
StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
XGetTransientForHint(dpy, c->win, &trans);
twa.override_redirect = 1;
twa.background_pixmap = ParentRelative;
twa.event_mask = ExposureMask;
c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th,
0, DefaultDepth(dpy, screen), CopyFromParent,
DefaultVisual(dpy, screen),
CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa);
settags(c);
c->next = clients;
clients = c;
XGrabButton(dpy, Button1, ControlMask, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(dpy, Button1, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(dpy, Button2, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
XGrabButton(dpy, Button3, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
if(!c->isfloat)
c->isfloat = trans || (c->maxw && c->minw &&
(c->maxw == c->minw) && (c->maxh == c->minh));
settitle(c);
arrange(NULL);
/* mapping the window now prevents flicker */
if(c->tags[tsel]) {
XMapRaised(dpy, c->win);
XMapRaised(dpy, c->title);
focus(c);
}
else {
XMapRaised(dpy, c->win);
XMapRaised(dpy, c->title);
}
}
void
maximize(Arg *arg)
{
if(!sel)
return;
sel->x = sx;
sel->y = sy + bh;
sel->w = sw - 2 * sel->border;
sel->h = sh - 2 * sel->border - bh;
higher(sel);
resize(sel, False, TopLeft);
}
void
pop(Client *c)
{
Client **l;
for(l = &clients; *l && *l != c; l = &(*l)->next);
*l = c->next;
c->next = clients; /* pop */
clients = c;
arrange(NULL);
}
void
resize(Client *c, Bool inc, Corner sticky)
{
XConfigureEvent e;
int right = c->x + c->w;
int bottom = c->y + c->h;
if(inc) {
if(c->incw)
c->w -= (c->w - c->basew) % c->incw;
if(c->inch)
c->h -= (c->h - c->baseh) % c->inch;
}
if(c->x > sw) /* might happen on restart */
c->x = sw - c->w;
if(c->y > sh)
c->y = sh - c->h;
if(c->minw && c->w < c->minw)
c->w = c->minw;
if(c->minh && c->h < c->minh)
c->h = c->minh;
if(c->maxw && c->w > c->maxw)
c->w = c->maxw;
if(c->maxh && c->h > c->maxh)
c->h = c->maxh;
if(sticky == TopRight || sticky == BotRight)
c->x = right - c->w;
if(sticky == BotLeft || sticky == BotRight)
c->y = bottom - c->h;
resizetitle(c);
XSetWindowBorderWidth(dpy, c->win, 1);
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
e.type = ConfigureNotify;
e.event = c->win;
e.window = c->win;
e.x = c->x;
e.y = c->y;
e.width = c->w;
e.height = c->h;
e.border_width = c->border;
e.above = None;
e.override_redirect = False;
XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
XSync(dpy, False);
}
void
setsize(Client *c)
{
XSizeHints size;
long msize;
if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags)
size.flags = PSize;
c->flags = size.flags;
if(c->flags & PBaseSize) {
c->basew = size.base_width;
c->baseh = size.base_height;
}
else
c->basew = c->baseh = 0;
if(c->flags & PResizeInc) {
c->incw = size.width_inc;
c->inch = size.height_inc;
}
else
c->incw = c->inch = 0;
if(c->flags & PMaxSize) {
c->maxw = size.max_width;
c->maxh = size.max_height;
}
else
c->maxw = c->maxh = 0;
if(c->flags & PMinSize) {
c->minw = size.min_width;
c->minh = size.min_height;
}
else
c->minw = c->minh = 0;
if(c->flags & PWinGravity)
c->grav = size.win_gravity;
else
c->grav = NorthWestGravity;
}
void
settitle(Client *c)
{
XTextProperty name;
int n;
char **list = NULL;
name.nitems = 0;
c->name[0] = 0;
XGetTextProperty(dpy, c->win, &name, netatom[NetWMName]);
if(!name.nitems)
XGetWMName(dpy, c->win, &name);
if(!name.nitems)
return;
if(name.encoding == XA_STRING)
strncpy(c->name, (char *)name.value, sizeof(c->name));
else {
if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success
&& n > 0 && *list)
{
strncpy(c->name, *list, sizeof(c->name));
XFreeStringList(list);
}
}
XFree(name.value);
resizetitle(c);
}
void
unmanage(Client *c)
{
Client **l;
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
XDestroyWindow(dpy, c->title);
for(l = &clients; *l && *l != c; l = &(*l)->next);
*l = c->next;
for(l = &clients; *l; l = &(*l)->next)
if((*l)->revert == c)
(*l)->revert = NULL;
if(sel == c)
sel = sel->revert ? sel->revert : clients;
free(c);
XSync(dpy, False);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
arrange(NULL);
if(sel)
focus(sel);
}
void
zoom(Arg *arg)
{
Client *c;
if(!sel)
return;
if(sel == getnext(clients, tsel) && sel->next) {
if((c = getnext(sel->next, tsel)))
sel = c;
}
pop(sel);
focus(sel);
}

@ -0,0 +1,116 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};

@ -1,4 +1,7 @@
# Customize to fit your system
# dwm version
VERSION = 6.2
# Customize below to fit your system
# paths
PREFIX = /usr/local
@ -7,24 +10,29 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
VERSION = 0.4
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# includes and libs
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
# Linux/BSD
CFLAGS = -O3 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
-DVERSION=\"${VERSION}\"
LDFLAGS = ${LIBS}
#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
# -DVERSION=\"${VERSION}\"
#LDFLAGS = -g ${LIBS}
# includes and libs
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
#CFLAGS = -fast -xtarget=ultra ${INCLUDES} -DVERSION=\"${VERSION}\"
#LIBS += -lnsl -lsocket
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
AR = ar cr
# compiler and linker
CC = cc
RANLIB = ranlib

235
draw.c

@ -1,235 +0,0 @@
/*
* (C)opyright MMIV-MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
#include <stdio.h>
#include <string.h>
#include <X11/Xlocale.h>
/* static */
static void
drawborder(void)
{
XPoint points[5];
XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
XSetForeground(dpy, dc.gc, dc.border);
points[0].x = dc.x;
points[0].y = dc.y;
points[1].x = dc.w - 1;
points[1].y = 0;
points[2].x = 0;
points[2].y = dc.h - 1;
points[3].x = -(dc.w - 1);
points[3].y = 0;
points[4].x = 0;
points[4].y = -(dc.h - 1);
XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
}
static unsigned int
textnw(char *text, unsigned int len)
{
XRectangle r;
if(dc.font.set) {
XmbTextExtents(dc.font.set, text, len, NULL, &r);
return r.width;
}
return XTextWidth(dc.font.xfont, text, len);
}
static void
drawtext(const char *text, Bool invert, Bool border)
{
int x, y, w, h;
unsigned int len;
static char buf[256];
XGCValues gcv;
XRectangle r = { dc.x, dc.y, dc.w, dc.h };
XSetForeground(dpy, dc.gc, invert ? dc.fg : dc.bg);
XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
w = 0;
if(border)
drawborder();
if(!text)
return;
len = strlen(text);
if(len >= sizeof(buf))
len = sizeof(buf) - 1;
memcpy(buf, text, len);
buf[len] = 0;
h = dc.font.ascent + dc.font.descent;
y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent;
x = dc.x + (h / 2);
/* shorten text if necessary */
while(len && (w = textnw(buf, len)) > dc.w - h)
buf[--len] = 0;
if(w > dc.w)
return; /* too long */
gcv.foreground = invert ? dc.bg : dc.fg;
gcv.background = invert ? dc.fg : dc.bg;
if(dc.font.set) {
XChangeGC(dpy, dc.gc, GCForeground | GCBackground, &gcv);
XmbDrawImageString(dpy, dc.drawable, dc.font.set, dc.gc,
x, y, buf, len);
}
else {
gcv.font = dc.font.xfont->fid;
XChangeGC(dpy, dc.gc, GCForeground | GCBackground | GCFont, &gcv);
XDrawImageString(dpy, dc.drawable, dc.gc, x, y, buf, len);
}
}
/* extern */
void
drawall()
{
Client *c;
for(c = clients; c; c = getnext(c->next, tsel))
drawtitle(c);
drawstatus();
}
void
drawstatus()
{
int i;
Bool istile = arrange == dotile;
dc.x = dc.y = 0;
dc.w = bw;
drawtext(NULL, !istile, False);
dc.w = 0;
for(i = 0; i < TLast; i++) {
dc.x += dc.w;
dc.w = textw(tags[i]);
if(istile)
drawtext(tags[i], (i == tsel), True);
else
drawtext(tags[i], (i != tsel), True);
}
if(sel) {
dc.x += dc.w;
dc.w = textw(sel->name);
drawtext(sel->name, istile, True);
}
dc.w = textw(stext);
dc.x = bx + bw - dc.w;
drawtext(stext, !istile, False);
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
XSync(dpy, False);
}
void
drawtitle(Client *c)
{
int i;
Bool istile = arrange == dotile;
if(c == sel) {
drawstatus();
XUnmapWindow(dpy, c->title);
XSetWindowBorder(dpy, c->win, dc.fg);
return;
}
XSetWindowBorder(dpy, c->win, dc.bg);
XMapWindow(dpy, c->title);
dc.x = dc.y = 0;
dc.w = 0;
for(i = 0; i < TLast; i++) {
if(c->tags[i]) {
dc.x += dc.w;
dc.w = textw(c->tags[i]);
drawtext(c->tags[i], !istile, True);
}
}
dc.x += dc.w;
dc.w = textw(c->name);
drawtext(c->name, !istile, True);
XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
XSync(dpy, False);
}
unsigned long
getcolor(const char *colstr)
{
XColor color;
Colormap cmap = DefaultColormap(dpy, screen);
XAllocNamedColor(dpy, cmap, colstr, &color, &color);
return color.pixel;
}
void
setfont(const char *fontstr)
{
char **missing, *def;
int i, n;
missing = NULL;
setlocale(LC_ALL, "");
if(dc.font.set)
XFreeFontSet(dpy, dc.font.set);
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
if(missing) {
while(n--)
fprintf(stderr, "missing fontset: %s\n", missing[n]);
XFreeStringList(missing);
if(dc.font.set) {
XFreeFontSet(dpy, dc.font.set);
dc.font.set = NULL;
}
}
if(dc.font.set) {
XFontSetExtents *font_extents;
XFontStruct **xfonts;
char **font_names;
dc.font.ascent = dc.font.descent = 0;
font_extents = XExtentsOfFontSet(dc.font.set);
n = XFontsOfFontSet(dc.font.set, &xfonts, &font_names);
for(i = 0, dc.font.ascent = 0, dc.font.descent = 0; i < n; i++) {
if(dc.font.ascent < (*xfonts)->ascent)
dc.font.ascent = (*xfonts)->ascent;
if(dc.font.descent < (*xfonts)->descent)
dc.font.descent = (*xfonts)->descent;
xfonts++;
}
}
else {
if(dc.font.xfont)
XFreeFont(dpy, dc.font.xfont);
dc.font.xfont = NULL;
dc.font.xfont = XLoadQueryFont(dpy, fontstr);
if (!dc.font.xfont)
dc.font.xfont = XLoadQueryFont(dpy, "fixed");
if (!dc.font.xfont)
eprint("error, cannot init 'fixed' font\n");
dc.font.ascent = dc.font.xfont->ascent;
dc.font.descent = dc.font.xfont->descent;
}
dc.font.height = dc.font.ascent + dc.font.descent;
}
unsigned int
textw(char *text)
{
return textnw(text, strlen(text)) + dc.font.height;
}

436
drw.c

@ -0,0 +1,436 @@
/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xft/Xft.h>
#include "drw.h"
#include "util.h"
#define UTF_INVALID 0xFFFD
#define UTF_SIZ 4
static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0};
static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8};
static const long utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000};
static const long utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF};
static long
utf8decodebyte(const char c, size_t *i)
{
for (*i = 0; *i < (UTF_SIZ + 1); ++(*i))
if (((unsigned char)c & utfmask[*i]) == utfbyte[*i])
return (unsigned char)c & ~utfmask[*i];
return 0;
}
static size_t
utf8validate(long *u, size_t i)
{
if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF))
*u = UTF_INVALID;
for (i = 1; *u > utfmax[i]; ++i)
;
return i;
}
static size_t
utf8decode(const char *c, long *u, size_t clen)
{
size_t i, j, len, type;
long udecoded;
*u = UTF_INVALID;
if (!clen)
return 0;
udecoded = utf8decodebyte(c[0], &len);
if (!BETWEEN(len, 1, UTF_SIZ))
return 1;
for (i = 1, j = 1; i < clen && j < len; ++i, ++j) {
udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type);
if (type)
return j;
}
if (j < len)
return 0;
*u = udecoded;
utf8validate(u, len);
return len;
}
Drw *
drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h)
{
Drw *drw = ecalloc(1, sizeof(Drw));
drw->dpy = dpy;
drw->screen = screen;
drw->root = root;
drw->w = w;
drw->h = h;
drw->drawable = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen));
drw->gc = XCreateGC(dpy, root, 0, NULL);
XSetLineAttributes(dpy, drw->gc, 1, LineSolid, CapButt, JoinMiter);
return drw;
}
void
drw_resize(Drw *drw, unsigned int w, unsigned int h)
{
if (!drw)
return;
drw->w = w;
drw->h = h;
if (drw->drawable)
XFreePixmap(drw->dpy, drw->drawable);
drw->drawable = XCreatePixmap(drw->dpy, drw->root, w, h, DefaultDepth(drw->dpy, drw->screen));
}
void
drw_free(Drw *drw)
{
XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc);
drw_fontset_free(drw->fonts);
free(drw);
}
/* This function is an implementation detail. Library users should use
* drw_fontset_create instead.
*/
static Fnt *
xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
{
Fnt *font;
XftFont *xfont = NULL;
FcPattern *pattern = NULL;
if (fontname) {
/* Using the pattern found at font->xfont->pattern does not yield the
* same substitution results as using the pattern returned by
* FcNameParse; using the latter results in the desired fallback
* behaviour whereas the former just results in missing-character
* rectangles being drawn, at least with some fonts. */
if (!(xfont = XftFontOpenName(drw->dpy, drw->screen, fontname))) {
fprintf(stderr, "error, cannot load font from name: '%s'\n", fontname);
return NULL;
}
if (!(pattern = FcNameParse((FcChar8 *) fontname))) {
fprintf(stderr, "error, cannot parse font name to pattern: '%s'\n", fontname);
XftFontClose(drw->dpy, xfont);
return NULL;
}
} else if (fontpattern) {
if (!(xfont = XftFontOpenPattern(drw->dpy, fontpattern))) {
fprintf(stderr, "error, cannot load font from pattern.\n");
return NULL;
}
} else {
die("no font specified.");
}
/* Do not allow using color fonts. This is a workaround for a BadLength
* error from Xft with color glyphs. Modelled on the Xterm workaround. See
* https://bugzilla.redhat.com/show_bug.cgi?id=1498269
* https://lists.suckless.org/dev/1701/30932.html
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
* and lots more all over the internet.
*/
FcBool iscol;
if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
XftFontClose(drw->dpy, xfont);
return NULL;
}
font = ecalloc(1, sizeof(Fnt));
font->xfont = xfont;
font->pattern = pattern;
font->h = xfont->ascent + xfont->descent;
font->dpy = drw->dpy;
return font;
}
static void
xfont_free(Fnt *font)
{
if (!font)
return;
if (font->pattern)
FcPatternDestroy(font->pattern);
XftFontClose(font->dpy, font->xfont);
free(font);
}
Fnt*
drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount)
{
Fnt *cur, *ret = NULL;
size_t i;
if (!drw || !fonts)
return NULL;
for (i = 1; i <= fontcount; i++) {
if ((cur = xfont_create(drw, fonts[fontcount - i], NULL))) {
cur->next = ret;
ret = cur;
}
}
return (drw->fonts = ret);
}
void
drw_fontset_free(Fnt *font)
{
if (font) {
drw_fontset_free(font->next);
xfont_free(font);
}
}
void
drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
{
if (!drw || !dest || !clrname)
return;
if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen),
DefaultColormap(drw->dpy, drw->screen),
clrname, dest))
die("error, cannot allocate color '%s'", clrname);
}
/* Wrapper to create color schemes. The caller has to call free(3) on the
* returned color scheme when done using it. */
Clr *
drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount)
{
size_t i;
Clr *ret;
/* need at least two colors for a scheme */
if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor))))
return NULL;
for (i = 0; i < clrcount; i++)
drw_clr_create(drw, &ret[i], clrnames[i]);
return ret;
}
void
drw_setfontset(Drw *drw, Fnt *set)
{
if (drw)
drw->fonts = set;
}
void
drw_setscheme(Drw *drw, Clr *scm)
{
if (drw)
drw->scheme = scm;
}
void
drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert)
{
if (!drw || !drw->scheme)
return;
XSetForeground(drw->dpy, drw->gc, invert ? drw->scheme[ColBg].pixel : drw->scheme[ColFg].pixel);
if (filled)
XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h);
else
XDrawRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w - 1, h - 1);
}
int
drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert)
{
char buf[1024];
int ty;
unsigned int ew;
XftDraw *d = NULL;
Fnt *usedfont, *curfont, *nextfont;
size_t i, len;
int utf8strlen, utf8charlen, render = x || y || w || h;
long utf8codepoint = 0;
const char *utf8str;
FcCharSet *fccharset;
FcPattern *fcpattern;
FcPattern *match;
XftResult result;
int charexists = 0;
if (!drw || (render && !drw->scheme) || !text || !drw->fonts)
return 0;
if (!render) {
w = ~w;
} else {
XSetForeground(drw->dpy, drw->gc, drw->scheme[invert ? ColFg : ColBg].pixel);
XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h);
d = XftDrawCreate(drw->dpy, drw->drawable,
DefaultVisual(drw->dpy, drw->screen),
DefaultColormap(drw->dpy, drw->screen));
x += lpad;
w -= lpad;
}
usedfont = drw->fonts;
while (1) {
utf8strlen = 0;
utf8str = text;
nextfont = NULL;
while (*text) {
utf8charlen = utf8decode(text, &utf8codepoint, UTF_SIZ);
for (curfont = drw->fonts; curfont; curfont = curfont->next) {
charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint);
if (charexists) {
if (curfont == usedfont) {
utf8strlen += utf8charlen;
text += utf8charlen;
} else {
nextfont = curfont;
}
break;
}
}
if (!charexists || nextfont)
break;
else
charexists = 0;
}
if (utf8strlen) {
drw_font_getexts(usedfont, utf8str, utf8strlen, &ew, NULL);
/* shorten text if necessary */
for (len = MIN(utf8strlen, sizeof(buf) - 1); len && ew > w; len--)
drw_font_getexts(usedfont, utf8str, len, &ew, NULL);
if (len) {
memcpy(buf, utf8str, len);
buf[len] = '\0';
if (len < utf8strlen)
for (i = len; i && i > len - 3; buf[--i] = '.')
; /* NOP */
if (render) {
ty = y + (h - usedfont->h) / 2 + usedfont->xfont->ascent;
XftDrawStringUtf8(d, &drw->scheme[invert ? ColBg : ColFg],
usedfont->xfont, x, ty, (XftChar8 *)buf, len);
}
x += ew;
w -= ew;
}
}
if (!*text) {
break;
} else if (nextfont) {
charexists = 0;
usedfont = nextfont;
} else {
/* Regardless of whether or not a fallback font is found, the
* character must be drawn. */
charexists = 1;
fccharset = FcCharSetCreate();
FcCharSetAddChar(fccharset, utf8codepoint);
if (!drw->fonts->pattern) {
/* Refer to the comment in xfont_create for more information. */
die("the first font in the cache must be loaded from a font string.");
}
fcpattern = FcPatternDuplicate(drw->fonts->pattern);
FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset);
FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue);
FcPatternAddBool(fcpattern, FC_COLOR, FcFalse);
FcConfigSubstitute(NULL, fcpattern, FcMatchPattern);
FcDefaultSubstitute(fcpattern);
match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result);
FcCharSetDestroy(fccharset);
FcPatternDestroy(fcpattern);
if (match) {
usedfont = xfont_create(drw, NULL, match);
if (usedfont && XftCharExists(drw->dpy, usedfont->xfont, utf8codepoint)) {
for (curfont = drw->fonts; curfont->next; curfont = curfont->next)
; /* NOP */
curfont->next = usedfont;
} else {
xfont_free(usedfont);
usedfont = drw->fonts;
}
}
}
}
if (d)
XftDrawDestroy(d);
return x + (render ? w : 0);
}
void
drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h)
{
if (!drw)
return;
XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y);
XSync(drw->dpy, False);
}
unsigned int
drw_fontset_getwidth(Drw *drw, const char *text)
{
if (!drw || !drw->fonts || !text)
return 0;
return drw_text(drw, 0, 0, 0, 0, 0, text, 0);
}
void
drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h)
{
XGlyphInfo ext;
if (!font || !text)
return;
XftTextExtentsUtf8(font->dpy, font->xfont, (XftChar8 *)text, len, &ext);
if (w)
*w = ext.xOff;
if (h)
*h = font->h;
}
Cur *
drw_cur_create(Drw *drw, int shape)
{
Cur *cur;
if (!drw || !(cur = ecalloc(1, sizeof(Cur))))
return NULL;
cur->cursor = XCreateFontCursor(drw->dpy, shape);
return cur;
}
void
drw_cur_free(Drw *drw, Cur *cursor)
{
if (!cursor)
return;
XFreeCursor(drw->dpy, cursor->cursor);
free(cursor);
}

57
drw.h

@ -0,0 +1,57 @@
/* See LICENSE file for copyright and license details. */
typedef struct {
Cursor cursor;
} Cur;
typedef struct Fnt {
Display *dpy;
unsigned int h;
XftFont *xfont;
FcPattern *pattern;
struct Fnt *next;
} Fnt;
enum { ColFg, ColBg, ColBorder }; /* Clr scheme index */
typedef XftColor Clr;
typedef struct {
unsigned int w, h;
Display *dpy;
int screen;
Window root;
Drawable drawable;
GC gc;
Clr *scheme;
Fnt *fonts;
} Drw;
/* Drawable abstraction */
Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h);
void drw_resize(Drw *drw, unsigned int w, unsigned int h);
void drw_free(Drw *drw);
/* Fnt abstraction */
Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount);
void drw_fontset_free(Fnt* set);
unsigned int drw_fontset_getwidth(Drw *drw, const char *text);
void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h);
/* Colorscheme abstraction */
void drw_clr_create(Drw *drw, Clr *dest, const char *clrname);
Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount);
/* Cursor abstraction */
Cur *drw_cur_create(Drw *drw, int shape);
void drw_cur_free(Drw *drw, Cur *cursor);
/* Drawing context manipulation */
void drw_setfontset(Drw *drw, Fnt *set);
void drw_setscheme(Drw *drw, Clr *scm);
/* Drawing functions */
void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert);
int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert);
/* Map functions */
void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h);

267
dwm.1

@ -1,127 +1,176 @@
.TH DWM 1 dwm-0.4
.TH DWM 1 dwm\-VERSION
.SH NAME
dwm \- dynamic window manager
.SH SYNOPSIS
.B dwm
.RB [ \-v ]
.SH DESCRIPTION
.B dwm
is a dynamic window manager for X11. It manages windows in tiling and floating
modes. Either mode can be applied dynamically, depending on the application in
use and the task performed.
dwm is a dynamic window manager for X. It manages windows in tiled, monocle
and floating layouts. Either layout can be applied dynamically, optimising the
environment for the application in use and the task performed.
.P
In tiling mode windows are managed in a master and stacking column. The master
column contains the window which needs most attention at a time, whereas the
stacking column contains all other windows in a stack. Dialog windows are
managed floating, however. In floating mode windows can be resized and moved
freely.
In tiled layouts windows are managed in a master and stacking area. The master
area on the left contains one window by default, and the stacking area on the
right contains all other windows. The number of master area windows can be
adjusted from zero to an arbitrary number. In monocle layout all windows are
maximised to the screen size. In floating layout windows can be resized and
moved freely. Dialog windows are always managed floating, regardless of the
layout applied.
.P
Windows are grouped by tags. All windows with a specific tag can be viewed at a
time. But each window may contain more than one tag, which makes it visible in
several views.
Windows are grouped by tags. Each window can be tagged with one or multiple
tags. Selecting certain tags displays all windows with these tags.
.P
.B dwm
consists of a small status bar which reads the text displayed from standard
input, if written. It draws 1-pixel borders around windows to indicate the
focus state. Unfocused windows contain a small bar in front of the window
displaying the tags and the window title.
Each screen contains a small status bar which displays all available tags, the
layout, the title of the focused window, and the text read from the root window
name property, if the screen is focused. A floating window is indicated with an
empty square and a maximised floating window is indicated with a filled square
before the windows title. The selected tags are indicated with a different
color. The tags of the focused window are indicated with a filled square in the
top left corner. The tags which are applied to one or more windows are
indicated with an empty square in the top left corner.
.P
dwm draws a small border around windows to indicate the focus state.
.SH OPTIONS
.TP
.B \-v
prints version information to standard output, then exits.
prints version information to stderr, then exits.
.SH USAGE
.SS Status bar
.TP
.B Mod1-Return
Zoom
.B window
to the
.B master
column
.TP
.B Mod1-k
Focus previous
.B window
.TP
.B Mod1-j
Focus next
.B window
.TP
.B Mod1-m
Maximize current
.B window
.TP
.B Mod1-[0..n]
Focus
.B nth
tag
.TP
.B Mod1-space
(Re-)arrange
.B all
windows tiled
.TP
.B Mod1-Shift-space
(Re-)arrange
.B all
windows floating
.TP
.B Mod1-Shift-[0..n]
Apply
.B nth
tag to current
.B window
.TP
.B Mod1-Shift-q
Quit
.B dwm
.B X root window name
is read and displayed in the status text area. It can be set with the
.BR xsetroot (1)
command.
.TP
.B Mod1-Shift-Return
Start
.B terminal
.B Button1
click on a tag label to display all windows with that tag, click on the layout
label toggles between tiled and floating layout.
.TP
.B Mod1-Shift-w
.B Button3
click on a tag label adds/removes all windows with that tag to/from the view.
.TP
.B Mod1\-Button1
click on a tag label applies that tag to the focused window.
.TP
.B Mod1\-Button3
click on a tag label adds/removes that tag to/from the focused window.
.SS Keyboard commands
.TP
.B Mod1\-Shift\-Return
Start
.B web browser
.TP
.B Mod1-Shift-l
Lock
.B screen
.TP
.B Control-[0..n]
Append
.B nth
tag to current
.B window
.TP
.B Control-Shift-[0..n]
Replace current
.B window
of
.B nth
tag with current tag.
.B window
.TP
.B Control-Button1
Zooms the clicked
.B window
to master column
.TP
.B Mod1-Button1
Moves current
.B window
while dragging
.TP
.B Mod1-Button2
Lowers current
.B window
.TP
.B Mod1-Button3
Resizes current
.B window
while dragging
.BR st(1).
.TP
.B Mod1\-p
Spawn
.BR dmenu(1)
for launching other programs.
.TP
.B Mod1\-,
Focus previous screen, if any.
.TP
.B Mod1\-.
Focus next screen, if any.
.TP
.B Mod1\-Shift\-,
Send focused window to previous screen, if any.
.TP
.B Mod1\-Shift\-.
Send focused window to next screen, if any.
.TP
.B Mod1\-b
Toggles bar on and off.
.TP
.B Mod1\-t
Sets tiled layout.
.TP
.B Mod1\-f
Sets floating layout.
.TP
.B Mod1\-m
Sets monocle layout.
.TP
.B Mod1\-space
Toggles between current and previous layout.
.TP
.B Mod1\-j
Focus next window.
.TP
.B Mod1\-k
Focus previous window.
.TP
.B Mod1\-i
Increase number of windows in master area.
.TP
.B Mod1\-d
Decrease number of windows in master area.
.TP
.B Mod1\-l
Increase master area size.
.TP
.B Mod1\-h
Decrease master area size.
.TP
.B Mod1\-Return
Zooms/cycles focused window to/from master area (tiled layouts only).
.TP
.B Mod1\-Shift\-c
Close focused window.
.TP
.B Mod1\-Shift\-space
Toggle focused window between tiled and floating state.
.TP
.B Mod1\-Tab
Toggles to the previously selected tags.
.TP
.B Mod1\-Shift\-[1..n]
Apply nth tag to focused window.
.TP
.B Mod1\-Shift\-0
Apply all tags to focused window.
.TP
.B Mod1\-Control\-Shift\-[1..n]
Add/remove nth tag to/from focused window.
.TP
.B Mod1\-[1..n]
View all windows with nth tag.
.TP
.B Mod1\-0
View all windows with any tag.
.TP
.B Mod1\-Control\-[1..n]
Add/remove all windows with nth tag to/from the view.
.TP
.B Mod1\-Shift\-q
Quit dwm.
.SS Mouse commands
.TP
.B Mod1\-Button1
Move focused window while dragging. Tiled windows will be toggled to the floating state.
.TP
.B Mod1\-Button2
Toggles focused window between floating and tiled state.
.TP
.B Mod1\-Button3
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
.SH CUSTOMIZATION
.B dwm
is customized through editing its source code. This keeps it fast, secure and
simple. The source code contains the
.I CUSTOMIZE
keyword to highlight relevant portions for customization.
dwm is customized by creating a custom config.h and (re)compiling the source
code. This keeps it fast, secure and simple.
.SH SEE ALSO
.BR dmenu (1),
.BR st (1)
.SH ISSUES
Java applications which use the XToolkit/XAWT backend may draw grey windows
only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
environment variable
.BR AWT_TOOLKIT=MToolkit
(to use the older Motif backend instead) or running
.B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
or
.B wmname LG3D
(to pretend that a non-reparenting window manager is running that the
XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
.BR _JAVA_AWT_WM_NONREPARENTING=1 .
.SH BUGS
Send all bug reports with a patch to hackers@suckless.org.

2152
dwm.c

File diff suppressed because it is too large Load Diff

145
dwm.h

@ -1,145 +0,0 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include <X11/Xlib.h>
/********** CUSTOMIZE **********/
#define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
#define BGCOLOR "#0a2c2d"
#define FGCOLOR "#ddeeee"
#define BORDERCOLOR "#176164"
#define MODKEY Mod1Mask /* Mod4Mask */
/*
#define BGCOLOR "#666699"
#define FGCOLOR "#eeeeee"
#define BORDERCOLOR "#9999CC"
*/
#define MASTERW 52 /* percent */
#define WM_PROTOCOL_DELWIN 1
/* tags */
enum { Tscratch, Tdev, Twww, Twork, TLast };
/********** CUSTOMIZE **********/
typedef union Arg Arg;
typedef struct Client Client;
typedef enum Corner Corner;
typedef struct DC DC;
typedef struct Fnt Fnt;
union Arg {
const char **argv;
int i;
};
/* atoms */
enum { NetSupported, NetWMName, NetLast };
enum { WMProtocols, WMDelete, WMLast };
/* cursor */
enum { CurNormal, CurResize, CurMove, CurLast };
enum Corner { TopLeft, TopRight, BotLeft, BotRight };
struct Fnt {
int ascent;
int descent;
int height;
XFontSet set;
XFontStruct *xfont;
};
struct DC { /* draw context */
int x, y, w, h;
unsigned long bg;
unsigned long fg;
unsigned long border;
Drawable drawable;
Fnt font;
GC gc;
};
struct Client {
char name[256];
char *tags[TLast];
int proto;
int x, y, w, h;
int tx, ty, tw, th; /* title */
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
int grav;
unsigned int border;
long flags;
Bool isfloat;
Client *next;
Client *revert;
Window win;
Window title;
};
extern char *tags[TLast], stext[1024];
extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
extern void (*handler[LASTEvent])(XEvent *);
extern void (*arrange)(Arg *);
extern Atom wmatom[WMLast], netatom[NetLast];
extern Bool running, issel;
extern Client *clients, *sel;
extern Cursor cursor[CurLast];
extern DC dc;
extern Display *dpy;
extern Window root, barwin;
/* client.c */
extern void ban(Client *c);
extern void focus(Client *c);
extern void focusnext(Arg *arg);
extern void focusprev(Arg *arg);
extern Client *getclient(Window w);
extern Client *getctitle(Window w);
extern void gravitate(Client *c, Bool invert);
extern void higher(Client *c);
extern void killclient(Arg *arg);
extern void lower(Client *c);
extern void manage(Window w, XWindowAttributes *wa);
extern void maximize(Arg *arg);
extern void pop(Client *c);
extern void resize(Client *c, Bool inc, Corner sticky);
extern void setsize(Client *c);
extern void settitle(Client *c);
extern void unmanage(Client *c);
extern void zoom(Arg *arg);
/* draw.c */
extern void drawall();
extern void drawstatus();
extern void drawtitle(Client *c);
extern unsigned long getcolor(const char *colstr);
extern void setfont(const char *fontstr);
extern unsigned int textw(char *text);
/* event.c */
extern void grabkeys();
/* main.c */
extern int getproto(Window w);
extern void quit(Arg *arg);
extern void sendevent(Window w, Atom a, long value);
extern int xerror(Display *dsply, XErrorEvent *ee);
/* tag.c */
extern void appendtag(Arg *arg);
extern void dofloat(Arg *arg);
extern void dotile(Arg *arg);
extern Client *getnext(Client *c, unsigned int t);
extern void heretag(Arg *arg);
extern void replacetag(Arg *arg);
extern void settags(Client *c);
extern void view(Arg *arg);
/* util.c */
extern void *emallocz(unsigned int size);
extern void eprint(const char *errstr, ...);
extern void spawn(Arg *arg);

@ -1,118 +0,0 @@
<html>
<head>
<title>dwm - dynamic window manager</title>
<meta name="author" content="Anselm R. Garbe">
<meta name="generator" content="ed">
<meta name="copyright" content="(C)opyright 2006 by Anselm R. Garbe">
<style type="text/css">
body {
color: #000000;
font-family: sans-serif;
margin: 20px 20px 20px 20px;
}
</style>
</head>
<body>
<center>
<img src="dwm.png"/><br />
<h3>dynamic window manager</h3>
</center>
<h3>Description</h3>
<p>
dwm is a dynamic window manager for X11.
</p>
<h4>Philosophy</h4>
<p>
As founder and main developer of wmii I came to the conclusion that
wmii is too clunky for my needs. I don't need so many funky features
and all this hype about remote control through a 9P service, I only
want to manage my windows in a simple, but dynamic way. wmii never got
finished because I listened to users, who proposed arbitrary ideas I
considered useful. This resulted in an extreme <a
href="http://www.jwz.org/doc/cadt.html">CADT</a> development model,
which was a mistake. Thus the philosophy of dwm is simply <i>to fit my
needs</i> (maybe yours as well). That's it.
</p>
<h4>Differences to ion, larswm, and wmii</h4>
<p>
In contrast to ion, larswm, and wmii, dwm is much smaller, faster and simpler.
</p>
<ul>
<li>
dwm has no Lua integration, no 9P support, no menu, no editable
tagbars, no shell-based configuration, no remote control, and comes
without any additional tools like printing the selection or warping
the mouse.
</li>
<li>
dwm is only a single binary, it's source code is intended to never
exceed 2000 SLOC.
</li>
<li>
dwm is based on tagging and dynamic window management (however
simpler than ion, wmii or larswm). It manages windows in
tiling and floating modes. Either mode can be applied dynamically,
depending on the application in use and the task performed.
</li>
<li>
dwm don't distinguishes between layers, there is no floating or
tiled layer. Wether the clients of currently selected tag are in
tiled mode or not, you can re-arrange all clients on the fly.
Popup- and fixed-size windows are treated floating, however.
</li>
<li>
dwm is customized through editing its source code, that makes it
extremely fast and secure - it does not process any input data
which hasn't been known at compile time, except window title names
and status text read from standard input. You don't have to learn
Lua/sh/ruby or some weird configuration file format (like X
resource files), beside C to customize it for your needs,
you <b>only</b> have to learn C.
</li>
<li>
Because dwm is customized through editing its source code, it's
pointless to make binary packages of it. This keeps its userbase
small and elitist. No novices asking stupid questions.
</li>
<li>
dwm uses 1-pixel borders to provide the maximum of screen real
estate to clients. Small titlebars are only drawn in front of
unfocused clients.
</li>
<li>
dwm reads from standard input to print arbitrary status text (like
the date, load, battery charge). That's much simpler than
larsremote, wmiir and what not...
</li>
<li>
It can be downloaded and distributed under the conditions
of the <a href="http://10kloc.org/cgi-bin/hgwebdir.cgi/dwm?f=f10eb1139362;file=LICENSE;style=raw">MIT/X Consortium license</a>.
</li>
</ul>
<h4>Links</h4>
<ul>
<li><a href="http://10kloc.org/cgi-bin/man/man2html?query=dwm">Man page</a></li>
<li><a href="http://10kloc.org/shots/dwm-20060714.png">Screenshot</a> (20060714)</li>
<li><a href="http://10kloc.org/download/poster.ps">A4 poster (PostScript)</a></li>
<li>Mailing List: <a href="http://10kloc.org/cgi-bin/mailman/listinfo/dwm">dwm at wmii dot de</a> <a href="http://10kloc.org/pipermail/dwm/">(Archives)</a></li>
<li>IRC channel: <code>#dwm</code> at <code>irc.oftc.net</code></li>
</ul>
<h3>Development</h3>
<p>
dwm is actively developed in parallel to wmii. You can <a href="http://10kloc.org/cgi-bin/hgwebdir.cgi/dwm">browse</a> its source code repository or get a copy using <a href="http://www.selenic.com/mercurial/">Mercurial</a> with following command:
</p>
<p>
<code>hg clone http://10kloc.org/cgi-bin/hgwebdir.cgi/dwm</code>
</p>
<h3>Download</h3>
<ul>
<li><a href="http://10kloc.org/download/dwm-0.4.tar.gz">dwm 0.4</a> (13kb) (20060720)</li>
</ul>
<h3>Miscellaneous</h3>
<p>
You can purchase this <a href="https://www.spreadshirt.net/shop.php?op=article&article_id=3298632&view=403">tricot</a>
if you like dwm and the dwm logo, which has been designed by Anselm.
</p>
<p><small>--Anselm (20060719)</small></p>
</body>
</html>

@ -1,393 +0,0 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
#include <stdlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
#define ButtonMask (ButtonPressMask | ButtonReleaseMask)
#define MouseMask (ButtonMask | PointerMotionMask)
/* CUSTOMIZE */
typedef struct {
unsigned long mod;
KeySym keysym;
void (*func)(Arg *arg);
Arg arg;
} Key;
/*
const char *browse[] = { "firefox", NULL };
const char *gimp[] = { "gimp", NULL };
*/
const char *term[] = { "xterm", NULL };
/*
"urxvtc", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white",
"-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL
};
coonst char *xlock[] = { "xlock", NULL };
*/
static Key key[] = {
/* modifier key function arguments */
{ ControlMask, XK_0, appendtag, { .i = Tscratch } },
{ ControlMask, XK_1, appendtag, { .i = Tdev } },
{ ControlMask, XK_2, appendtag, { .i = Twww } },
{ ControlMask, XK_3, appendtag, { .i = Twork } },
{ MODKEY, XK_0, view, { .i = Tscratch } },
{ MODKEY, XK_1, view, { .i = Tdev } },
{ MODKEY, XK_2, view, { .i = Twww } },
{ MODKEY, XK_3, view, { .i = Twork } },
{ MODKEY, XK_j, focusnext, { 0 } },
{ MODKEY, XK_k, focusprev, { 0 } },
{ MODKEY, XK_m, maximize, { 0 } },
{ MODKEY, XK_space, dotile, { 0 } },
{ MODKEY, XK_Return, zoom, { 0 } },
{ ControlMask|ShiftMask,XK_0, heretag, { .i = Tscratch } },
{ ControlMask|ShiftMask,XK_1, heretag, { .i = Tdev } },
{ ControlMask|ShiftMask,XK_2, heretag, { .i = Twww } },
{ ControlMask|ShiftMask,XK_3, heretag, { .i = Twork } },
{ MODKEY|ShiftMask, XK_0, replacetag, { .i = Tscratch } },
{ MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } },
{ MODKEY|ShiftMask, XK_2, replacetag, { .i = Twww } },
{ MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } },
{ MODKEY|ShiftMask, XK_c, killclient, { 0 } },
/*
{ MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } },
{ MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } },
*/
{ MODKEY|ShiftMask, XK_q, quit, { 0 } },
{ MODKEY|ShiftMask, XK_space, dofloat, { 0 } },
/*{ MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } },*/
{ MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } },
};
/* static */
static void
movemouse(Client *c)
{
XEvent ev;
int x1, y1, ocx, ocy, di;
unsigned int dui;
Window dummy;
ocx = c->x;
ocy = c->y;
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
None, cursor[CurMove], CurrentTime) != GrabSuccess)
return;
XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui);
for(;;) {
XMaskEvent(dpy, MouseMask | ExposureMask, &ev);
switch (ev.type) {
default: break;
case Expose:
handler[Expose](&ev);
break;
case MotionNotify:
XSync(dpy, False);
c->x = ocx + (ev.xmotion.x - x1);
c->y = ocy + (ev.xmotion.y - y1);
resize(c, False, TopLeft);
break;
case ButtonRelease:
XUngrabPointer(dpy, CurrentTime);
return;
}
}
}
static void
resizemouse(Client *c)
{
XEvent ev;
int ocx, ocy;
Corner sticky;
ocx = c->x;
ocy = c->y;
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAsync,
None, cursor[CurResize], CurrentTime) != GrabSuccess)
return;
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h);
for(;;) {
XMaskEvent(dpy, MouseMask | ExposureMask, &ev);
switch(ev.type) {
default: break;
case Expose:
handler[Expose](&ev);
break;
case MotionNotify:
XSync(dpy, False);
c->w = abs(ocx - ev.xmotion.x);
c->h = abs(ocy - ev.xmotion.y);
c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
if(ocx <= ev.xmotion.x)
sticky = (ocy <= ev.xmotion.y) ? TopLeft : BotLeft;
else
sticky = (ocy <= ev.xmotion.y) ? TopRight : BotRight;
resize(c, True, sticky);
break;
case ButtonRelease:
XUngrabPointer(dpy, CurrentTime);
return;
}
}
}
static void
buttonpress(XEvent *e)
{
int x;
Arg a;
XButtonPressedEvent *ev = &e->xbutton;
Client *c;
if(barwin == ev->window) {
switch(ev->button) {
default:
x = 0;
for(a.i = 0; a.i < TLast; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {
view(&a);
break;
}
}
break;
case Button4:
a.i = (tsel + 1 < TLast) ? tsel + 1 : 0;
view(&a);
break;
case Button5:
a.i = (tsel - 1 >= 0) ? tsel - 1 : TLast - 1;
view(&a);
break;
}
}
else if((c = getclient(ev->window))) {
switch(ev->button) {
default:
break;
case Button1:
if(arrange == dotile && !c->isfloat) {
if((ev->state & ControlMask) && (ev->button == Button1))
zoom(NULL);
}
else {
higher(c);
movemouse(c);
}
break;
case Button2:
lower(c);
break;
case Button3:
if(arrange == dofloat || c->isfloat) {
higher(c);
resizemouse(c);
}
break;
}
}
}
static void
configurerequest(XEvent *e)
{
XConfigureRequestEvent *ev = &e->xconfigurerequest;
XWindowChanges wc;
Client *c;
ev->value_mask &= ~CWSibling;
if((c = getclient(ev->window))) {
gravitate(c, True);
if(ev->value_mask & CWX)
c->x = ev->x;
if(ev->value_mask & CWY)
c->y = ev->y;
if(ev->value_mask & CWWidth)
c->w = ev->width;
if(ev->value_mask & CWHeight)
c->h = ev->height;
if(ev->value_mask & CWBorderWidth)
c->border = 1;
gravitate(c, False);
resize(c, True, TopLeft);
}
wc.x = ev->x;
wc.y = ev->y;
wc.width = ev->width;
wc.height = ev->height;
wc.border_width = 1;
wc.sibling = None;
wc.stack_mode = Above;
ev->value_mask &= ~CWStackMode;
ev->value_mask |= CWBorderWidth;
XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
XSync(dpy, False);
}
static void
destroynotify(XEvent *e)
{
Client *c;
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = getclient(ev->window)))
unmanage(c);
}
static void
enternotify(XEvent *e)
{
XCrossingEvent *ev = &e->xcrossing;
Client *c;
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return;
if((c = getclient(ev->window)))
focus(c);
else if(ev->window == root)
issel = True;
}
static void
expose(XEvent *e)
{
XExposeEvent *ev = &e->xexpose;
Client *c;
if(ev->count == 0) {
if(barwin == ev->window)
drawstatus();
else if((c = getctitle(ev->window)))
drawtitle(c);
}
}
static void
keypress(XEvent *e)
{
XKeyEvent *ev = &e->xkey;
static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0;
unsigned int i;
KeySym keysym;
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
for(i = 0; i < len; i++)
if((keysym == key[i].keysym) && (key[i].mod == ev->state)) {
if(key[i].func)
key[i].func(&key[i].arg);
return;
}
}
static void
leavenotify(XEvent *e)
{
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen)
issel = True;
}
static void
maprequest(XEvent *e)
{
XMapRequestEvent *ev = &e->xmaprequest;
static XWindowAttributes wa;
if(!XGetWindowAttributes(dpy, ev->window, &wa))
return;
if(wa.override_redirect) {
XSelectInput(dpy, ev->window,
(StructureNotifyMask | PropertyChangeMask));
return;
}
if(!getclient(ev->window))
manage(ev->window, &wa);
}
static void
propertynotify(XEvent *e)
{
XPropertyEvent *ev = &e->xproperty;
Window trans;
Client *c;
if(ev->state == PropertyDelete)
return; /* ignore */
if((c = getclient(ev->window))) {
if(ev->atom == wmatom[WMProtocols]) {
c->proto = getproto(c->win);
return;
}
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans);
if(!c->isfloat && (c->isfloat = (trans != 0)))
arrange(NULL);
break;
case XA_WM_NORMAL_HINTS:
setsize(c);
break;
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
settitle(c);
drawtitle(c);
}
}
}
static void
unmapnotify(XEvent *e)
{
Client *c;
XUnmapEvent *ev = &e->xunmap;
if((c = getclient(ev->window)))
unmanage(c);
}
/* extern */
void (*handler[LASTEvent]) (XEvent *) = {
[ButtonPress] = buttonpress,
[ConfigureRequest] = configurerequest,
[DestroyNotify] = destroynotify,
[EnterNotify] = enternotify,
[LeaveNotify] = leavenotify,
[Expose] = expose,
[KeyPress] = keypress,
[MapRequest] = maprequest,
[PropertyNotify] = propertynotify,
[UnmapNotify] = unmapnotify
};
void
grabkeys()
{
static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0;
unsigned int i;
KeyCode code;
for(i = 0; i < len; i++) {
code = XKeysymToKeycode(dpy, key[i].keysym);
XUngrabKey(dpy, code, key[i].mod, root);
XGrabKey(dpy, code, key[i].mod, root, True,
GrabModeAsync, GrabModeAsync);
}
}

311
main.c

@ -1,311 +0,0 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/cursorfont.h>
#include <X11/Xatom.h>
#include <X11/Xproto.h>
/* static */
static Bool otherwm;
static int (*xerrorxlib)(Display *, XErrorEvent *);
static void
cleanup()
{
while(sel) {
resize(sel, True, TopLeft);
unmanage(sel);
}
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
}
static void
scan()
{
unsigned int i, num;
Window *wins;
XWindowAttributes wa;
Window d1, d2;
if(XQueryTree(dpy, root, &d1, &d2, &wins, &num)) {
for(i = 0; i < num; i++) {
if(!XGetWindowAttributes(dpy, wins[i], &wa))
continue;
if(wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
continue;
if(wa.map_state == IsViewable)
manage(wins[i], &wa);
}
}
if(wins)
XFree(wins);
}
static int
win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
{
Atom real;
int format;
unsigned long res, extra;
int status;
status = XGetWindowProperty(dpy, w, a, 0L, l, False, t, &real, &format,
&res, &extra, prop);
if(status != Success || *prop == 0) {
return 0;
}
if(res == 0) {
free((void *) *prop);
}
return res;
}
/*
* Startup Error handler to check if another window manager
* is already running.
*/
static int
xerrorstart(Display *dsply, XErrorEvent *ee)
{
otherwm = True;
return -1;
}
/* extern */
char stext[1024];
int tsel = Tdev; /* default tag */
int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
Atom wmatom[WMLast], netatom[NetLast];
Bool running = True;
Bool issel = True;
Client *clients = NULL;
Client *sel = NULL;
Cursor cursor[CurLast];
Display *dpy;
DC dc = {0};
Window root, barwin;
int
getproto(Window w)
{
unsigned char *protocols;
long res;
int protos = 0;
int i;
res = win_property(w, wmatom[WMProtocols], XA_ATOM, 20L, &protocols);
if(res <= 0) {
return protos;
}
for(i = 0; i < res; i++) {
if(protocols[i] == wmatom[WMDelete])
protos |= WM_PROTOCOL_DELWIN;
}
free((char *) protocols);
return protos;
}
void
sendevent(Window w, Atom a, long value)
{
XEvent e;
e.type = ClientMessage;
e.xclient.window = w;
e.xclient.message_type = a;
e.xclient.format = 32;
e.xclient.data.l[0] = value;
e.xclient.data.l[1] = CurrentTime;
XSendEvent(dpy, w, False, NoEventMask, &e);
XSync(dpy, False);
}
void
quit(Arg *arg)
{
running = False;
}
/*
* There's no way to check accesses to destroyed windows, thus those cases are
* ignored (especially on UnmapNotify's). Other types of errors call Xlibs
* default error handler, which calls exit().
*/
int
xerror(Display *dpy, XErrorEvent *ee)
{
if(ee->error_code == BadWindow
|| (ee->request_code == X_SetInputFocus
&& ee->error_code == BadMatch)
|| (ee->request_code == X_PolyText8
&& ee->error_code == BadDrawable)
|| (ee->request_code == X_PolyFillRectangle
&& ee->error_code == BadDrawable)
|| (ee->request_code == X_PolySegment
&& ee->error_code == BadDrawable)
|| (ee->request_code == X_ConfigureWindow
&& ee->error_code == BadMatch)
|| (ee->request_code == X_GrabKey
&& ee->error_code == BadAccess))
return 0;
fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n",
ee->request_code, ee->error_code);
return xerrorxlib(dpy, ee); /* may call exit() */
}
int
main(int argc, char *argv[])
{
int i, n;
fd_set rd;
XSetWindowAttributes wa;
unsigned int mask;
Bool readstdin = True;
Window w;
XEvent ev;
for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) {
switch (argv[i][1]) {
default:
eprint("usage: dwm [-v]\n");
break;
case 'v':
fputs("dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout);
exit(EXIT_SUCCESS);
break;
}
}
dpy = XOpenDisplay(0);
if(!dpy)
eprint("dwm: cannot connect X server\n");
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);
/* check if another WM is already running */
otherwm = False;
XSetErrorHandler(xerrorstart);
/* this causes an error if some other WM is running */
XSelectInput(dpy, root, SubstructureRedirectMask);
XSync(dpy, False);
if(otherwm)
eprint("dwm: another window manager is already running\n");
XSetErrorHandler(NULL);
xerrorxlib = XSetErrorHandler(xerror);
/* init atoms */
wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
PropModeReplace, (unsigned char *) netatom, NetLast);
/* init cursors */
cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
grabkeys();
/* style */
dc.bg = getcolor(BGCOLOR);
dc.fg = getcolor(FGCOLOR);
dc.border = getcolor(BORDERCOLOR);
setfont(FONT);
sx = sy = 0;
sw = DisplayWidth(dpy, screen);
sh = DisplayHeight(dpy, screen);
mw = (sw * MASTERW) / 100;
wa.override_redirect = 1;
wa.background_pixmap = ParentRelative;
wa.event_mask = ButtonPressMask | ExposureMask;
bx = by = 0;
bw = sw;
dc.h = bh = dc.font.height + 4;
barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen),
CopyFromParent, DefaultVisual(dpy, screen),
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
XDefineCursor(dpy, barwin, cursor[CurNormal]);
XMapRaised(dpy, barwin);
dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
dc.gc = XCreateGC(dpy, root, 0, 0);
drawstatus();
issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
wa.event_mask = SubstructureRedirectMask | EnterWindowMask \
| LeaveWindowMask;
wa.cursor = cursor[CurNormal];
XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
strcpy(stext, "dwm-"VERSION);
scan();
/* main event loop, reads status text from stdin as well */
Mainloop:
while(running) {
FD_ZERO(&rd);
if(readstdin)
FD_SET(STDIN_FILENO, &rd);
FD_SET(ConnectionNumber(dpy), &rd);
i = select(ConnectionNumber(dpy) + 1, &rd, 0, 0, 0);
if(i == -1 && errno == EINTR)
continue;
if(i < 0)
eprint("select failed\n");
else if(i > 0) {
if(FD_ISSET(ConnectionNumber(dpy), &rd)) {
while(XPending(dpy)) {
XNextEvent(dpy, &ev);
if(handler[ev.type])
(handler[ev.type])(&ev); /* call handler */
}
}
if(readstdin && FD_ISSET(STDIN_FILENO, &rd)) {
i = n = 0;
for(;;) {
if((i = getchar()) == EOF) {
/* broken pipe/end of producer */
readstdin = False;
strcpy(stext, "broken pipe");
goto Mainloop;
}
if(i == '\n' || n >= sizeof(stext) - 1)
break;
stext[n++] = i;
}
stext[n] = 0;
drawstatus();
}
}
}
cleanup();
XCloseDisplay(dpy);
return 0;
}

220
tag.c

@ -1,220 +0,0 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
#include <regex.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <X11/Xutil.h>
/* static */
typedef struct {
const char *pattern;
char *tags[TLast];
Bool isfloat;
} Rule;
/* CUSTOMIZE */
static Rule rule[] = {
/* class instance tags isfloat */
{ "Firefox.*", { [Twww] = "www" }, False },
{ "Gimp.*", { 0 }, True},
};
/* extern */
/* CUSTOMIZE */
char *tags[TLast] = {
[Tscratch] = "scratch",
[Tdev] = "dev",
[Twww] = "www",
[Twork] = "work",
};
void (*arrange)(Arg *) = dotile;
void
appendtag(Arg *arg)
{
if(!sel)
return;
sel->tags[arg->i] = tags[arg->i];
arrange(NULL);
}
void
dofloat(Arg *arg)
{
Client *c;
arrange = dofloat;
for(c = clients; c; c = c->next) {
if(c->tags[tsel]) {
resize(c, True, TopLeft);
}
else
ban(c);
}
if(sel && !sel->tags[tsel]) {
if((sel = getnext(clients, tsel))) {
higher(sel);
focus(sel);
}
}
drawall();
}
void
dotile(Arg *arg)
{
Client *c;
int n, i, w, h;
w = sw - mw;
arrange = dotile;
for(n = 0, c = clients; c; c = c->next)
if(c->tags[tsel] && !c->isfloat)
n++;
if(n > 1)
h = (sh - bh) / (n - 1);
else
h = sh - bh;
for(i = 0, c = clients; c; c = c->next) {
if(c->tags[tsel]) {
if(c->isfloat) {
higher(c);
resize(c, True, TopLeft);
continue;
}
if(n == 1) {
c->x = sx;
c->y = sy + bh;
c->w = sw - 2 * c->border;
c->h = sh - 2 * c->border - bh;
}
else if(i == 0) {
c->x = sx;
c->y = sy + bh;
c->w = mw - 2 * c->border;
c->h = sh - 2 * c->border - bh;
}
else if(h > bh) {
c->x = sx + mw;
c->y = sy + (i - 1) * h + bh;
c->w = w - 2 * c->border;
c->h = h - 2 * c->border;
}
else { /* fallback if h < bh */
c->x = sx + mw;
c->y = sy + bh;
c->w = w - 2 * c->border;
c->h = sh - 2 * c->border - bh;
}
resize(c, False, TopLeft);
i++;
}
else
ban(c);
}
if(!sel || (sel && !sel->tags[tsel])) {
if((sel = getnext(clients, tsel))) {
higher(sel);
focus(sel);
}
}
drawall();
}
Client *
getnext(Client *c, unsigned int t)
{
for(; c && !c->tags[t]; c = c->next);
return c;
}
void
heretag(Arg *arg)
{
int i;
Client *c;
if(arg->i == tsel)
return;
if(!(c = getnext(clients, arg->i)))
return;
for(i = 0; i < TLast; i++)
c->tags[i] = NULL;
c->tags[tsel] = tags[tsel];
pop(c);
focus(c);
}
void
replacetag(Arg *arg)
{
int i;
if(!sel)
return;
for(i = 0; i < TLast; i++)
sel->tags[i] = NULL;
appendtag(arg);
}
void
settags(Client *c)
{
char classinst[256];
static unsigned int len = rule ? sizeof(rule) / sizeof(rule[0]) : 0;
unsigned int i, j;
regex_t regex;
regmatch_t tmp;
Bool matched = False;
XClassHint ch;
if(!len) {
c->tags[tsel] = tags[tsel];
return;
}
if(XGetClassHint(dpy, c->win, &ch)) {
snprintf(classinst, sizeof(classinst), "%s:%s",
ch.res_class ? ch.res_class : "",
ch.res_name ? ch.res_name : "");
for(i = 0; !matched && i < len; i++) {
if(!regcomp(&regex, rule[i].pattern, 0)) {
if(!regexec(&regex, classinst, 1, &tmp, 0)) {
for(j = 0; j < TLast; j++) {
if(rule[i].tags[j])
matched = True;
c->tags[j] = rule[i].tags[j];
}
c->isfloat = rule[i].isfloat;
}
regfree(&regex);
}
}
if(ch.res_class)
XFree(ch.res_class);
if(ch.res_name)
XFree(ch.res_name);
}
if(!matched)
c->tags[tsel] = tags[tsel];
}
void
view(Arg *arg)
{
tsel = arg->i;
arrange(NULL);
drawall();
}

@ -0,0 +1,42 @@
/* cc transient.c -o transient -lX11 */
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(void) {
Display *d;
Window r, f, t = None;
XSizeHints h;
XEvent e;
d = XOpenDisplay(NULL);
if (!d)
exit(1);
r = DefaultRootWindow(d);
f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0);
h.min_width = h.max_width = h.min_height = h.max_height = 400;
h.flags = PMinSize | PMaxSize;
XSetWMNormalHints(d, f, &h);
XStoreName(d, f, "floating");
XMapWindow(d, f);
XSelectInput(d, f, ExposureMask);
while (1) {
XNextEvent(d, &e);
if (t == None) {
sleep(5);
t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0);
XSetTransientForHint(d, t, f);
XStoreName(d, t, "transient");
XMapWindow(d, t);
XSelectInput(d, t, ExposureMask);
}
}
XCloseDisplay(d);
exit(0);
}

@ -1,61 +1,35 @@
/*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dwm.h"
/* See LICENSE file for copyright and license details. */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
/* static */
static void
bad_malloc(unsigned int size)
{
fprintf(stderr, "fatal: could not malloc() %d bytes\n",
(int) size);
exit(EXIT_FAILURE);
}
#include <string.h>
/* extern */
#include "util.h"
void *
emallocz(unsigned int size)
ecalloc(size_t nmemb, size_t size)
{
void *res = calloc(1, size);
if(!res)
bad_malloc(size);
return res;
void *p;
if (!(p = calloc(nmemb, size)))
die("calloc:");
return p;
}
void
eprint(const char *errstr, ...) {
die(const char *fmt, ...) {
va_list ap;
va_start(ap, errstr);
vfprintf(stderr, errstr, ap);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
exit(EXIT_FAILURE);
}
void
spawn(Arg *arg)
{
char **argv = (char **)arg->argv;
if(!argv || !argv[0])
return;
if(fork() == 0) {
if(fork() == 0) {
if(dpy)
close(ConnectionNumber(dpy));
setsid();
execvp(argv[0], argv);
fprintf(stderr, "dwm: execvp %s", argv[0]);
perror(" failed");
}
exit(EXIT_FAILURE);
if (fmt[0] && fmt[strlen(fmt)-1] == ':') {
fputc(' ', stderr);
perror(NULL);
} else {
fputc('\n', stderr);
}
wait(0);
exit(1);
}

@ -0,0 +1,8 @@
/* See LICENSE file for copyright and license details. */
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);
Loading…
Cancel
Save