Commit Graph

5935 Commits

Author SHA1 Message Date
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
Julien Danjou d5596c06ed xutil: remove useless error functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00
Julien Danjou d834e19a23 awesome: use xcb_event error code
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00
Julien Danjou cda33ca3e6 key: cleanup modifiers system
We stop retrieving useless key, since we have constant.
We also grab correctly all keycode for a keysym.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:54 +02:00
Uli Schlachter 40c300afed Change xcolor_t::initialized into a bool
The code already assigns "true" to this, but it's not yet a boolean variable.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-15 12:01:41 +02:00
Uli Schlachter 7b91cf259c Minor code optimization / pretification
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-15 12:01:41 +02:00
Uli Schlachter 7b2627cbf9 Fix a small memleak in window_opacity_get()
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-15 12:01:41 +02:00
Matus Telgarsky 1c147a6d76 graph: fix for missing allocation
resizing graph widgets (by setting the width parameter) was failing to
update the caches draw_to and draw_from.  I have attached a 2-line patch
remedying this.  The bug wasn't caught earlier because the default size,
80, is bigger than what people typically use.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 11:36:11 +02:00
Julien Danjou 27c80c1950 awful.sn: add
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14 14:23:39 +02:00
Julien Danjou f4221a1fdf spawn: add support for startup-notification
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14 14:23:38 +02:00
Julien Danjou e4f7e99c3f client: add support for _NET_STARTUP_ID
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14 12:47:10 +02:00
Maarten Maathuis bdf2b082bf layout: rearrange ban/unban sequence to avoid seeing the background during tag switch
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 16:34:54 +02:00
koniu 3e8506e6cb awful.widget.taglist: remove needless taglist_squares conditions
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 13:13:58 +02:00
Julien Danjou 045d4c823b textbox: unref image on destruction
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 12:43:00 +02:00