Pierre Habouzit
b19aace542
Fix draw_align_fromstr calls.
...
Note that it's undefined to have side effects on an argument and pass this
argument again to another function.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-24 22:40:34 +02:00
Julien Danjou
c1e1083e63
titlebar: fix position init
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 20:37:31 +02:00
Julien Danjou
ab5119732d
use more tokenizer, with len
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 14:01:33 +02:00
Julien Danjou
88cff0eadc
widget: allow widgets to be added several times
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 18:38:08 +02:00
Julien Danjou
de0a799fb9
titlebar: check for client before drawing
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 18:32:09 +02:00
Julien Danjou
92f369e3aa
lua: userdata_new is now macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 18:31:35 +02:00
Julien Danjou
2a027ef2a9
titlebar: use client_getbytitlebar() to get client
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 17:15:03 +02:00
Julien Danjou
694f97e4d7
titlebar: set above client edge border
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 17:05:10 +02:00
Julien Danjou
c7fc344cd3
titlebar: check for widget uniqness
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 16:37:26 +02:00
Julien Danjou
cd8ae9fe53
titlebar: add border_set() method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 11:59:09 +02:00
Julien Danjou
435816a811
titlebar: update titlebar.new() documentation for borders
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 11:27:51 +02:00
Julien Danjou
32a73f9ae6
titlebar: add support for border, refactorize code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 11:22:54 +02:00
Arnaud Fontaine
b9e1ec69d0
Replace xcb_aux_get_screen() by a safer function
2008-06-17 17:14:00 +02:00
Julien Danjou
3555e89c1c
swindow: only send one event for moveresize
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-16 11:44:33 +02:00
Julien Danjou
16646c86ab
lua: __eq methods are not macros
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-16 11:37:55 +02:00
Julien Danjou
6e36717163
lua: _gc are now macros
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-16 11:31:38 +02:00
Julien Danjou
883c12d8ff
titlebar: add colors_set() function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 15:33:37 +02:00
Julien Danjou
e5e379656a
systray: import widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-14 18:12:16 +02:00
Michael Gehring
276f5f8849
[doxygen] Add \lvalue and convert existing doc.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-11 07:36:34 +02:00
Michael Gehring
1ca55927f0
[doxygen] Convert Lua documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 20:12:51 +02:00
Julien Danjou
88c76cadf4
[titlebar] Allow nil to be arg of titlebar_set()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 19:35:38 +02:00
Julien Danjou
1049393840
Revert "Replace tags by workspaces"
...
This reverts commit 00f966ea04
.
Revert "[focus] Fix bogus arguments"
This reverts commit 816b5d16bc
.
Revert "[mouse] Fix bug with floating"
This reverts commit 89daa72790
.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 21:56:03 +02:00
Julien Danjou
00f966ea04
Replace tags by workspaces
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 16:30:46 +02:00
Julien Danjou
4c41361d6c
[lua] Add object as argument to mouse click function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 19:21:21 +02:00
Julien Danjou
98119d5d3f
[lua] Check for object validity
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 18:27:10 +02:00
Julien Danjou
0a44e90cb6
[lua] Fix garbage collectors
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 18:17:47 +02:00
Julien Danjou
eb8378749b
[titlebar] Add titlebar_client_get()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 17:54:52 +02:00
Julien Danjou
2742318f16
[common] Use pixmap instead of drawable type
...
It's just more clear.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 16:13:41 +02:00
Julien Danjou
80ec848130
[client] Add titlebar_get()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 13:36:13 +02:00
Julien Danjou
70dbc724bf
[titlebar] Add titlebar_widget_get()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 13:29:45 +02:00
Julien Danjou
131f31c561
[titlebar] Redraw on widget_add
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 13:27:13 +02:00
Julien Danjou
aecc3c0e45
[titlebar] Store titlebar inside client
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 11:50:21 +02:00
Julien Danjou
4e066c4436
[titlebar] Remove dead code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 20:12:48 +02:00
Julien Danjou
1e08a992b8
[titlebar] Rewrote titlebar based on widgets
...
This is the new titlebar handling code, based on widgets.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 18:41:54 +02:00
Julien Danjou
d8a5b43f26
[widgets] Make draw functions statusbar-less dependents
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-02 12:18:17 +02:00
Julien Danjou
7cff3567e3
[statusbar] Fix left and right statusbars alpha support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-30 18:09:54 +02:00
Julien Danjou
0bbd2d4b3e
Rename AwesomeConf to awesome_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-24 08:59:27 +02:00
Julien Danjou
8bba0ba76a
[titlebar] Fix inconsitent API with text*
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 16:41:36 +02:00
Julien Danjou
a04417494b
[mouse] Rename Button to button_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 15:12:01 +02:00
Julien Danjou
1f046b3c9f
[everything] Switch from libconfuse to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Julien Danjou
b142264787
[draw] Make draw_text using a const pointer to a style
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
f0e29977d8
[client] introduce client_style_get() and use it in tasklist/titlebar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
f29c16ec43
[titlebar] Fix height initialization parsing
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
33837d77a1
[draw] Rename DrawCtx to draw_context_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
f12f1798dd
[draw] Add margin code inside markup string
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
5c51759cca
[draw] Make text_align part of markup format
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
da9d970e13
[titlebar] Fix compilation warning
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
eab7633675
[tasklist] Remove styles; use drawtext format
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
7a8e39b3e7
[markup] Add generic substitution of elements and use it for titlebar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
16d98db666
[titlebar] Fix buffer allocation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00