Commit Graph

3335 Commits

Author SHA1 Message Date
Julien Danjou f9954cd6af awful: init index history at run
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 22:42:48 +02:00
Damien Leone 17900df7db awful: fix index init
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 20:49:37 +02:00
Damien Leone 2e4fdbb40d awful: fix empty command adding
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 20:39:03 +02:00
Damien Leone df7d60faf3 awful: add prompt history
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 19:47:23 +02:00
Michal Nowak ea930d8972 build: enable distro specific doc's path
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 18:30:21 +02:00
Julien Danjou 5758a3919a tag: remove get and geti methods
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 18:26:09 +02:00
Julien Danjou bcfc3656ab screen: export tags array
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 18:23:47 +02:00
Julien Danjou abd0216194 tag: allow view only if tag has a screen
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 18:23:47 +02:00
Julien Danjou e5c38ad17f awesomerc: support no layout
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 18:23:47 +02:00
Arnaud Fontaine b655f6348c xutil: rename xutil functions according to the rest of code. 2008-08-11 18:05:35 +02:00
Julien Danjou be2bfdcfc5 screen: introduce screen objects
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 17:14:02 +02:00
Julien Danjou 0903e21a1a clients: manage client with _AWESOME_PROPERTIES
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 15:10:54 +02:00
Julien Danjou 33c0d77193 xutil: allow gettextprop() to be called without text
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 15:10:24 +02:00
Julien Danjou 6e5d89e4de Revert "client: fix windows managed on startup"
This reverts commit f32cba6bd8.
2008-08-11 15:04:10 +02:00
Julien Danjou f32cba6bd8 client: fix windows managed on startup
We need to not take the UNVIEWABLE, but everything else should be
managed.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 14:57:15 +02:00
Julien Danjou b84ca43bc6 build: remove xcb-render, not used
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 14:19:38 +02:00
Julien Danjou 24fbbd9939 event: mark arrange on map
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 12:30:18 +02:00
Julien Danjou 53d60670a8 version: spell D-Bus correctly
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 12:08:16 +02:00
Julien Danjou 8d1f20c5ad client: implement maybevisible(), and use it for maprequest
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 11:57:57 +02:00
Julien Danjou 4b2293d43d client: rewrite focus()
Hidden client are not more hiddent if focus requested (FS#245)

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 11:51:54 +02:00
Julien Danjou fb093696bb clients: add icon_name support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 11:41:42 +02:00
Julien Danjou 32167500c6 client: add support for WM_CLIENT_MACHINE
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 11:09:44 +02:00
Julien Danjou 9f503e5a13 lua: rename luaA_function to luaA_ref
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 10:12:36 +02:00
Konstantin 0397854775 awful: add no empty show for taglist
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 09:53:44 +02:00
Julien Danjou b92a07c2ed Revert "Alternative export method of arrays from C to Lua"
This reverts commit 4ab499fe26.

Conflicts:

	lua.h
2008-08-11 02:21:21 +02:00
Julien Danjou adebbb5df2 systray: ignore XEMBED_MAPPED, everyone is not XEMBED aware
Like QT apps.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 20:58:03 +02:00
Julien Danjou c4999bd59d lua: fix __next, must return 2 values
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 17:23:08 +02:00
Michael Gehring a921f60510 version: fix #include order
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:31:12 +02:00
Julien Danjou a5806d5e61 lua: arrays use __next and __pairs metamethods
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:19:56 +02:00
Konstantin 4ab499fe26 Alternative export method of arrays from C to Lua
The patch is mainly to export client_array_t object to Lua,
but can be used to export any ..._array_t object.

The idea: export to Lua not a table, but userdata with
metamethods to get/set/define length of ..._array_t object
directly.

Now when I get clients field from tag object C code
creates full copy of client_array_t structure into Lua table.
It takes traversing a whole array of data.

I did it in other way: userdata is exported, with __index,
__newindex, and __len meta-methods defined, and Lua
script gains direct access to client_array_t C-array:
it can get client object, get length of array and assign
client objects to some index in C-array.

Pros:
No overhead of creation a copy of C-structure into Lua-table:
if I want just to test a number of clients for a tag, I don't need
a whole loop to build table, I just want to read clients->len field,
and I do so via __len meta-method.
Also if I want to get some client from tags.clients, I don't need
to create ALL clients Lua-objects, I just get client_t C-struct
and create Lua-object from it. Just in place.
So Lua-loop enuming all tag.clients is not 2 loops internally
(first create copy of tag.clients into Lua-table, then enum this table),
but only one, and if I break out of loop in the middle, I create
only some client Lua-objects, not all of them from tag.clients.

Contras:
As far as clients field is not a table, I cant use pairs/ipairs
and other table functions for it.
But it can be implemented in other way:
for k,c pairs(tag.clients) => for k = 1, #tag.clients,
table.insert(tag.clients, client) => tag.clients[#tag.clients+1] = client

etc.

One more Pro now:
As far as tag.clients in current implementation returns copy of data
table.insert doesn't do what's expected: it doesn't really add client
into tag.clients "array".
With my implementation client is added as expected, as we work with
client_array_t structure directly.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:18:59 +02:00
Julien Danjou 8b5f6266da lua: add support for __pairs and __next metamethods
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:15:15 +02:00
Julien Danjou 4b452510ba taglist: append area even if function fails
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:15:15 +02:00
Julien Danjou 415defdba5 client: allow screen change only if xinerama is active
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 10:32:59 +02:00
Fabienne Ducroquet 0348b0566e libs: fix callback call and untab
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 08:04:09 +02:00
Konstantin 36cf917890 awful.lua - use new tags.clients to enum clients in taglist.label.all
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-09 19:48:17 +02:00
Kanru Chen 94dab79ff3 awesomerc: put systray into statusbar
table.insert doesn't work on statusbar.widgets because statusbar.widgets
always returns a new copy.

'condition and a or b' works like 'condition ? a : b' in C.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-09 10:00:20 +02:00
MATSUU Takuto 533dee543f build: fix gdkpixbuf dependency
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-09 09:55:01 +02:00
Julien Danjou 2f04baed34 beautiful: fix luadoc module name
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 19:07:42 +02:00
Julien Danjou a89cf77002 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 18:53:45 +02:00
Julien Danjou 9e9b7c1bf3 mouse: refresh titlebars on the fly
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 17:38:51 +02:00
Julien Danjou cde948bd61 titlebar: add position in __newindex
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 17:15:23 +02:00
Julien Danjou bfad5a0d0d titlebar: add position in __index
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 17:10:29 +02:00
Julien Danjou eb2eb9c30b awful: check for selected
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 17:07:31 +02:00
Julien Danjou 2900127619 awesomerc: revert titlebar off
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 16:50:55 +02:00
Julien Danjou 56b42a7878 titlebar: widgets are now returned/set as array
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 16:49:26 +02:00
Julien Danjou 874e62d849 titlebar: replace client_get() by client attribute
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 16:04:18 +02:00
Julien Danjou e5d828b369 statusbar: widgets is now an array
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 15:47:09 +02:00
Julien Danjou e73269c727 awful: use tag screen number
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 14:45:50 +02:00
Julien Danjou 856eb1a9b2 tag: add support for tag screen change
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 14:39:03 +02:00
Julien Danjou 81da69b282 lua: remove spurious \n
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-08 14:37:27 +02:00