aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
AgeCommit message (Collapse)AuthorLines
2017-05-22ShrinkageHEADmasterNick Shipp-361/+4
2017-05-08yet another cleanupAnselm R Garbe-34/+34
The previous patches introduced some unclean space-based indentation patterns. This patch fixes them.
2017-03-28Don't restrict snap in mousemoveMarkus Teich-14/+11
This also fixes a bug where client windows only switch to floating mode when the mouse is dragged in one specific direction.
2017-03-28Button passthrough when client is not focusedMarkus Teich-10/+11
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.
2017-03-28cleanupMarkus Teich-34/+30
- 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.
2016-12-05applied Markus' tagset purge of alternative view on _NET_ACTIVE_WINDOW eventAnselm R Garbe-20/+18
2016-12-05applied Ivan Delalande's NET_SUPPORTING_WM_CHECK patch for gtk3 compatibilityAnselm R Garbe-2/+14
2016-12-05applied Markus' decouple color-scheme patchAnselm R Garbe-5/+7
2016-12-05applied Markus' clarify status text padding patchAnselm R Garbe-2/+2
2016-08-12die() consistency: always add newlineHiltjo Posthuma-5/+5
2016-06-26import new drw from libsl and minor fixes.Markus Teich-46/+39
- better scaling for occupied tag squares. - draw statusline first to omitt some complicated calculations.
2016-06-24Configure geometry before applying rulesEric Pruitt-6/+7
Configuring geometry before applying rules makes it possible to have more complex constraints in applyrules that depend on the initial window dimensions and location.
2015-12-19fix fullscreen clients not resized on X display resolution changeHiltjo Posthuma-1/+6
patch provided by Bert Münnich <ber.t_AT_posteo.de>, thanks!
2015-11-08code-style consistencyHiltjo Posthuma-433/+503
2015-11-08unboolificationHiltjo Posthuma-71/+70
2015-11-08sort include + whitespace fixHiltjo Posthuma-3/+3
2015-11-08separate program-specific c99 bool and X11Hiltjo Posthuma-70/+72
True, False are X11-specific (int), make sure to use c99 stdbool for program-specific things.
2015-11-07setfullscreen: don't process the property twiceQuentin Rameau-2/+2
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>)
2015-10-20sync updated drw code from dmenuHiltjo Posthuma-4/+6
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().
2015-10-20dwm: use ecalloc, prevent theoretical overflowHiltjo Posthuma-6/+3
2015-10-20cleanup, dont use c++ style commentsHiltjo Posthuma-4/+4
- signal: print error string. - die: start message with lower-case (consistency). - bump version to 2015.
2015-10-20dwm: cleanup: free schemes and cursors as arrayHiltjo Posthuma-9/+8
2015-03-13Add Xft and follback-fonts support to graphics libEric Pruitt-10/+10
2014-08-11applied Hiltjo's resize/move limitationAnselm R Garbe-2/+11
"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.
2014-05-29same as before with dwm.c as wellAnselm R Garbe-1/+1
2013-08-27applied Lukas' focus suggestion at startup, thanksAnselm R Garbe-0/+1
2013-08-02applied improved version of Martti Kühne's dmenu/multi monitor approach ↵Anselm R Garbe-0/+2
from dwm, no dmenuspawn required
2013-06-19applied Julian's enum approach,Anselm R Garbe-25/+24
however renamed theme into scheme resp. Theme into ClrScheme
2013-06-16finished libsl/drw integrationAnselm R Garbe-183/+70
2013-04-17renamed draw into drwAnselm R Garbe-1/+1
2012-12-08continued with draw.c abstraction, also started util.{h,c} implementation, ↵Anselm R Garbe-13/+1
that will be used by draw.c as well
2012-11-18reverting the xkb dependency, I don't care if this function is deprecated, ↵anselm@garbe.us-9/+2
it seems it breaks other stuff instead.
2012-11-18reverting to plain X11 fonts in order to implement draw.c defaultanselm@garbe.us-36/+66
2012-11-17compile fixanselm@garbe.us-2/+2
2012-11-17applied Neil Klopfstein's patch, slightly modifiedanselm@garbe.us-2/+8
2012-11-17starting with initial draw.hanselm@garbe.us-0/+2
2012-11-02incorporating Xft instead of cairo, cairo provides far too many optionsanselm@garbe.us-66/+36
2012-07-08reverted to old updategeom() after several complains, we need to optimize ↵anselm@garbe.us-53/+70
the old way
2012-06-23applied James Turner's XkbKeycodeToKeysym patch, thanksanselm@garbe.us-1/+2
2012-06-23drastically changed updategeom() handling, see comment in updategeom() for ↵anselm@garbe.us-70/+53
details
2012-06-23reversed Andreas Amann's fullscreen fix with the approach proposed by Gary ↵anselm@garbe.us-11/+10
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
2012-04-15added kludge to fix some input focus misbehavior in gedit and anjuta, thanks ↵anselm@garbe.us-1/+2
Martti Kühne
2012-03-25applied Andreas Amanns' netwm_client_list patch, but with some indentation fixesanselm@garbe.us-1/+20
2012-03-25applied Andreas Amann's netwm_active_window patch, thxanselm@garbe.us-3/+12
2012-03-17applied Andreas Amann fullscreen fix, some minor modificationsanselm@garbe.us-3/+10
2012-02-10unfocus on slow sloppy monitor focusConnor Lane Smith-0/+1
2012-02-08applied Eckehard Berns fix fix, sorry that this took so longanselm@garbe.us-3/+5
2012-01-12applied Eckehard Berns barwin leak fix and his suggestion to deal with ↵anselm@garbe.us-3/+3
restack() -- the latter aspect needs further investigation.
2011-11-15add sloppy monitor focusConnor Lane Smith-3/+19
2011-11-06calculate window/monitor intersectionConnor Lane Smith-15/+19