Commit Graph

4170 Commits

Author SHA1 Message Date
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
Julien Danjou 9b61434f7e wibox: fix memory leak with cursor
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 12:40:33 +02:00
Julien Danjou a08794d7cd client, wibox: unref image on garbage collection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 12:36:23 +02:00
koniu f0a11b9628 awful.widget.taglist: dont show name if icon_only property is set
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 10:54:20 +02:00
Uli Schlachter bee45f1b4a Remove the code for floating wiboxes from wibox_position_update_non_floating()
The last commit moved the handling of floating wiboxes into its own function,
so the checks for floating wiboxes in here can be removed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-12 21:11:46 +02:00
Uli Schlachter b4b08fd926 Split wibox_position_update() up
Floating wiboxes are much easier to handle, so they deserve their own
function.
This function, wibox_position_update_floating() does exactly the same things
wibox_position_update() did before. No behaviour change involved.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-12 21:08:59 +02:00
Uli Schlachter 62bfc2e9ac Some minor code optimization
It's just easier to read this way. :)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-12 21:04:05 +02:00
Uli Schlachter 34554d8958 Only arrange screen for non-floating wiboxes
Floating wiboxes dont influence client's position and thus no arrange
is necessary.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-12 21:02:21 +02:00
Julien Danjou bf837f5d41 awful.util: fix eval
Do not need return actually.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 17:38:10 +02:00
Julien Danjou 834a608999 otable: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 81b46f9694 awful.widget.tasklist: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 2dfbd6ea2c awful.widget.taglist: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 4db50647fe awful.widget.common: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 6b3c57970e telak: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou c47b5daf75 tabulous: stop using otable
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 527bbfa0e0 awful.titlebar: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00