Commit Graph

4398 Commits

Author SHA1 Message Date
Julien Danjou fac192f6ef dbus: fix warning message
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 15:00:10 +02:00
Julien Danjou 0b93186f09 property: make use of xcb_get_wm_class_from_reply() when possible
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 14:20:06 +02:00
Uli Schlachter b6db5137fc awesome-client: Use rlwrap if it is available
This should make this more usable again. The old C version used readline, if
possible and now the new bash version does too. :)

The idea to use rlwrap is from jd and it's a good one.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:05:14 +02:00
Julien Danjou 9b35ad7983 color: simplify includes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 14:02:21 +02:00
Uli Schlachter 7beda0321a Add some comments to make things clearer
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 708636b5bf Convert the textbox widget to color_t
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 829caf45ba Convert the progressbar widget to color_t
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 69082ddf5f Convert the imagebox widget to color_t
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 3216a849b5 Convert the graph widget to color_t
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 7f663ad563 Add luaA_pushcolor() for pushing color_t*
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 99b521b2c7 Rename luaA_pushcolor() to luaA_pushxcolor()
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter d19d679f2a Make the image code use color instead of xcolor
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 37862c83c0 Make the draw_*() functions take a color_t*
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 293f2a312d Add an API for converting a xcolor_t to a color_t
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter 19e30e56d0 Add new color management api
This api is intended for uses where you don't need a color's pixel value but
only the color components.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:20 +02:00
Uli Schlachter b38881b123 Fix a integer overflow issue
Alpha of 0xff resulted in RGB_8TO16(0xff) == 0x10000. This was cast to uint8_t
which resulted in alpha being set to 0.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:01:22 +02:00
Uli Schlachter 388ef61158 Move some code into a helper function
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:01:21 +02:00
Uli Schlachter 5dadaa59a9 Move xcolor into its own source files
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 13:55:38 +02:00
Julien Danjou 24b82772d2 atoms: drop useless strlen usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 13:37:01 +02:00
Julien Danjou 9d48852fed util: remove fd_set_close_on_exec()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 11:39:06 +02:00
Uli Schlachter 4b83d526d6 naughty: fix typo
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 10:34:50 +02:00
Julien Danjou a6f60c8e41 slist: remove
We do not use linked list anymore.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 23:27:16 +02:00
Julien Danjou 80e935455d stack: remove client_node type and inverse order
We now use a client_array_t which is more efficient and we reverse the
array order compared to before.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 23:26:26 +02:00
koniu faf394c2ed awful.titlebar: fix typo
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 22:41:52 +02:00
Julien Danjou ad887a77bf change default binding for run prompt to Mod4+r
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 18:20:06 +02:00
Julien Danjou 76e978597f change default Lua code execution to Mod4+x
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 18:19:37 +02:00
Julien Danjou 21978546eb lib: fix libs to use new awful.button
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 18:08:52 +02:00
Julien Danjou 5e0c84b9fb tag: reset screen later
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 17:21:59 +02:00
Julien Danjou f473a107b0 cleanup #includes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:52:25 +02:00
Julien Danjou 62ec664d0f config.h: always compile with Imlib2, so remove define
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:34:00 +02:00
Julien Danjou a415926b78 struct: move void_array definition to luaa
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:27:16 +02:00
Julien Danjou 6fe35b1387 tag: move struct definition into tag.h
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:27:16 +02:00
Julien Danjou de94a2cb12 client: move struct definition to client.h
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:27:00 +02:00
Julien Danjou 93c782f524 wibox: move struct definition into wibox.h
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:25:14 +02:00
Julien Danjou 416f88f84f widget: move definition into widget.h
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:25:13 +02:00
Julien Danjou 486ef71a7f screen: replace screens pointer by a screen_t array
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:14:09 +02:00
Julien Danjou 9a66456f90 root: split out of luaa
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 11:50:20 +02:00
Julien Danjou 9bb2c2d1e9 client: changing size hints does not arrange()
It just calls property hook.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 11:43:56 +02:00
Julien Danjou 937cab0a30 awful.{key,button}: return a table
Fix a wrong assertian that actually:
function a() return 1, 2, 3 end
c = { a(), a() }
Won't make #c == 6 but c == 4 because only the last call to a() will
fill the table with 3 results.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 11:13:22 +02:00
Gregor Best ece9eb8874 image: export drawing routines to lua
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-16 18:46:54 +02:00
Gregor Best 4431d67679 image: initialize new images
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-16 18:46:54 +02:00
koniu 92c482dbee awful.util.table.join: fix typo
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-16 08:52:56 +02:00
koniu 94b2232c4f awful.util: rename table.concat to table.join
This is to avoid confusion with Lua's table.concat which takes a table
and returns a string of all its elements concatenated with a given
separator.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 22:12:44 +02:00
koniu 8cbb65d5c2 awful.util.table.concat: take any number of arguments
Allows joining more than 2 tables at a time

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 22:12:44 +02:00
Julien Danjou efc3cc4c15 xutil: fix proto
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 14:43:59 +02:00
Julien Danjou 5db54fc731 xutil: fix proto of key mask translator
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 14:43:59 +02:00
Julien Danjou f168bbdfa4 key: add support for modifier mask Any
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 14:43:58 +02:00
Julien Danjou 1a18088da5 key: stop ignoring arbitrary modifier
Before, we used to ignore Mod2 and Lock.
This is now configurable.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00
Julien Danjou 0215aa5b42 awful.util: add table.concat()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00
Julien Danjou d0b7cc9c97 awful.util: add subset() function
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00