Aldo Cortesi
f36a56cdcc
Refactor draw.c
...
This is a big patch that does not change any behaviour. We abstract the data
needed by the draw.c functions into a context object, and pass that around
instead of passing each argument every time. This results in a much cleaner API
- most functions lose 3-4 arguments.
This is a preparatory patch for further work on statusbar.
2007-12-15 09:30:29 +01:00
Julien Danjou
0753ed5fb5
statusbar drawable is no more stored but dynamicaly created; this fix a problem with statusbar on right
2007-11-11 22:27:00 +01:00
Julien Danjou
543899da7c
fix statusbar display when on right
2007-11-11 19:49:50 +01:00
Julien Danjou
05dad60786
experimental support for status bar to be on right or left
2007-11-11 18:59:11 +01:00
Nikos Ntarmos
7ecbae334f
use Cairo to render fonts
2007-10-16 16:35:28 +02:00
Julien Danjou
a74ca1d1de
tabswidth is 4 not 6
2007-10-15 13:56:24 +02:00
Julien Danjou
4e0acfa99a
add coding style stuff
2007-10-15 13:40:52 +02:00
Julien Danjou
a06674fbe7
add drawcircle() function and use it for floating/max windows instead of drawrectangle
2007-10-11 17:06:55 +02:00
Julien Danjou
1f5a6e918b
use drawrectangle to draw background in statusbar, fix coords of rectangles and compute colors correctly
2007-10-11 16:29:20 +02:00
Julien Danjou
f6ea98649c
drawsquare is now drawrectangle
2007-10-11 15:44:30 +02:00
Julien Danjou
445479cf8b
use Cairo for rendering square instead of Xlib
2007-10-10 19:59:14 +02:00
Julien Danjou
1a755ff245
simplify color handling
2007-10-10 13:07:12 +02:00
Julien Danjou
2887bb8b86
avoid DC in drawsquare()
2007-10-09 21:43:26 +02:00
Julien Danjou
aa645b15ab
avoid DC in drawtext()
2007-10-09 21:29:19 +02:00
Julien Danjou
97a2085705
cosmetic: remove lines with empty spaces at end
2007-10-03 17:26:14 +02:00
Julien Danjou
272f4b1c2a
Xft support
2007-10-01 19:22:57 +02:00
Julien Danjou
9737185639
simplify drawsquare()
2007-09-20 20:11:33 +02:00
Julien Danjou
ce367ebfba
simplify drawsquare()
2007-09-19 15:42:40 +02:00
Julien Danjou
82e1c44f85
better proto for drawsquare
...
the old one was not logical
2007-09-17 12:45:41 +02:00
Julien Danjou
56a387ec5c
move updatebarpos to statusbar.c
2007-09-15 15:26:51 +02:00
Julien Danjou
fe89aa31b0
create statusbar.c and move things from draw.c
2007-09-15 15:16:53 +02:00
Julien Danjou
01b2785587
rename drawstatus to drawstatusbar
2007-09-15 13:54:02 +02:00
Julien Danjou
9897e5a839
remove DC from global in draw.c
2007-09-12 16:55:47 +02:00
Julien Danjou
7659289b9e
chance license to GPLv2
2007-09-12 14:29:51 +02:00
Julien Danjou
9f56ade4e9
use more safe functions and update #inlcude
2007-09-11 14:00:49 +02:00
Julien Danjou
baa1e422fe
rename last jdwm to awesome and make config a little more robust
2007-09-10 16:11:57 +02:00
Julien Danjou
6f528063be
rename jdwm to awesome
2007-09-10 12:06:54 +02:00
Julien Danjou
bd5bef5acf
remove textw function, change it with a macro
2007-09-06 22:09:00 +02:00
Julien Danjou
f7173bd79d
first import
2007-09-05 20:15:00 +02:00