Commit Graph

5239 Commits

Author SHA1 Message Date
Gregor Best c846da24e1 invaders: change enemy distribution
This commit changes the distribution of enemies so that each row
contains only one type of enemy.
2008-10-21 22:47:07 +02:00
Julien Danjou 7b6ba906d4 imagebox: fix luadoc fields
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 18:32:48 +02:00
Julien Danjou 5e96e21c2c image: add width and height attributes
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 18:29:35 +02:00
Julien Danjou 248bfb0e95 event: reset wibox widget mouse_over on leave
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 17:57:10 +02:00
Julien Danjou 1ddbfaaaf0 event: handle enter widget on window enter
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 17:50:35 +02:00
Julien Danjou f236a22b62 widget: bug fix when widget->len = 0
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 17:45:05 +02:00
Julien Danjou d3ceff0282 structs: move some define out
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 17:37:14 +02:00
Julien Danjou 569ea75409 wibox: handle widget_node_t as array rather than list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 17:21:59 +02:00
Julien Danjou 4eb096e236 libs: use geometry instead of coords
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 16:25:06 +02:00
Julien Danjou 208b3955ce awesomerc: use geometry
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:32:42 +02:00
Julien Danjou 5ab2497b43 client, screen: use geometry rather coords as keyword
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:31:52 +02:00
Julien Danjou 2a36b021d1 client: icon_name is stored and watched
This permits to update tasklist on icon name changes.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:15:28 +02:00
Julien Danjou c0f75c2ed8 widgets: clear private struct
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:07:41 +02:00
Julien Danjou bd47652fe0 awful.widget: tasklist to update on name changes
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:07:18 +02:00
Julien Danjou fba1a96737 progressbar: use bar array rather than linked list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 14:48:49 +02:00
Julien Danjou 96929faa69 graph: use array instead of linked list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 12:04:19 +02:00
Julien Danjou a5640330d9 lua: check for ref value before getting them
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 10:35:23 +02:00
Julien Danjou 862fe193ee Rewrite {tag,task}list in Lua.
This removes the C implementation of taglist and tasklist widgets and
use a Lua one.

This works by letting .widgets property of wiboxes to be a table with
table, and setting a special metatable on them which notify awesome on
newindex events, updating wiboxes.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 20:06:09 +02:00
Julien Danjou 0e3ff0bc8f event: get coordinates of visible widgets only
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 19:49:24 +02:00
Gregor Best 08a700f132 Increased Invaders difficulty
This commit increases invaders difficulty a little bit and cleans up the
code (moved static enemy data to the top of the file, made keygrabber a
part of capi, not an own local variable)

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 19:42:40 +02:00
koniu a48e71af18 naughty: destroy() now takes object instead idx (FS #350)
Fixes the bug although still relies on index being passed with notification
in notify() and re-set by arrange().

Also box:geometry() in arrange() stopped working with just one argument
so it pushes all coords now.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 17:42:49 +02:00
Julien Danjou 5c8a4dee4a client: export skip_taskbar
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 17:27:52 +02:00
Julien Danjou 7984b22f7a invaders: crush png files
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 16:03:59 +02:00
Julien Danjou 674f522229 imagebox: add support for background color
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 15:56:56 +02:00
Julien Danjou ba66ae8035 hooks: add clients hook
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 15:04:56 +02:00
Julien Danjou 1f4df91c30 luaa: split luaA_register() out of luaA_registerfct()
This allow to register other items.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 11:43:58 +02:00
Julien Danjou e39535c9fd luaa: add stack dumping debug function
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 11:21:15 +02:00
Julien Danjou 7d34f45ed6 util: document xmemdup()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 11:14:56 +02:00
Julien Danjou c19965cfff mouse: add index on button, permit object cloning
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-19 18:51:21 +02:00
Julien Danjou c9d9d45ab5 client: do not allow to modify name
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-19 18:51:21 +02:00
Julien Danjou 148bc7760b luaa: add luaA_toudata()
Convert a object to a udata if possible.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-19 18:51:21 +02:00
koniu e6d644c4fb naughty: import
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-18 13:40:01 +02:00
Gregor Best 072937ec70 Various changes to awful.util and invaders
This commit changes various aspects of awful.util and invaders:

awful.util:

- added awful.util.getdir(d)
  This function takes one argument and returns a matching directory,
  as of now, only "cache" is supported. The return value is either
  $XDG_CACHE_HOME/awesome/ or $HOME/.cache/awesome/, XDG_CACHE_HOME
  takes precedence

invaders:

- renamed invaders to awesome invaders
  at two places in the sourcecode, invaders is referred to as
  "Space Invaders for Awesome". As Taiko holds the trademark for
  the term "Space Invaders", I changed both of its occurences to
  "Awesome Invaders" to avoid conflicts with the law of Japan and
  the United States of America (and possibly others)

- added support for XDG_CACHE_HOME
  this change adds support for XDG_CACHE_HOME as the cache directory
  for highscores and screenshots

- added some parameters to invaders.run()
  this change adds three parameters to invaders.run, supplied as a
  table. They are "x", "y" and "solidbg".

  "x" sets the X coordinate of the playfield
  "y" sets the Y coordinate of the playfield
  "solidbg" sets the color of the playfield background for people who
  have problems with transparency. This still looks rather hackish and
  needs to be polished

- changed startup position
  up until now, invaders always started at (100,100) on the first
  screen, now it starts centered to the screen on which the mouse cursor
  is.
2008-10-17 19:20:31 +02:00
Gregor Best 1f8d52b3f5 Fix 1800 points bug and finally get beautiful support working
This commit (finally) fixes beautiful support, now it should work with
beautiful and without.

Another fixed serious bug is that no more enemies are spawned if the
score is higher than 1800
2008-10-15 18:59:31 +02:00
Gregor Best 497f5b45d8 Change enemy colors
This commits changes enemies #1 and #3 to be green and blue. These
colors look better than white and can be seen on bright screen
backgrounds.
2008-10-15 18:11:06 +02:00
Gregor Best b3518691cf add beautiful support to invaders.lua and change Garoth' name
This commit adds beautiful support to invaders.lua and changes Garoth'
name in the top comment to his full name + nickname
2008-10-14 21:39:56 +02:00
Julien Danjou 32ea9f46ca invaders: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 18:16:26 +02:00
Julien Danjou 6ee617e777 image: add crop_and_scale() method
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 17:37:39 +02:00
Julien Danjou 96c23ad5cb wibox: initialize wibox borders correctly (FS#343)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 17:32:03 +02:00
Gwenhael Le Moine 4379f702c3 Fine tuned 'fairh' and 'fairv' layouts.
Modified fair layouts' behaviors when there is only 2 windows to
manage.
In this case each layout adopt the behavior of the other so as to look
consistent with their name.

 fairv: +-----+
        |  |  |
        |  |  |
        +-----+
 fairh: +-----+
        |_____|
        |     |
        +-----+

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 09:05:51 +02:00
Julien Danjou 68ac8e1c65 awesomerc: split promptbox by screen (FS#332)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-13 11:28:48 +02:00
Julien Danjou bc5569ab94 luaa: send back but do not block (FS#338)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-13 11:17:43 +02:00
MATSUU Takuto bda6282df7 build: add x11-xcb as dep
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-13 08:57:51 +02:00
Julien Danjou 3c11511316 wibox: modify border color live
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:26:29 +02:00
Julien Danjou a57b87b411 wibox: update position correctly for titlebar
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:15:01 +02:00
Julien Danjou 39f50d5b06 awful.titlebar: do not build args
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:14:44 +02:00
Julien Danjou ebab2b7707 wibox: newindex allow border color change
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:02:42 +02:00
Julien Danjou 14670defd9 util: fix strsplit end buffer
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-11 11:18:15 +02:00
Julien Danjou 09686f3f3e property: check input flag set (FS#340)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-11 09:52:03 +02:00
Julien Danjou 71f999eb7f client: change isprotodel to hasproto()
That's more generic.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-11 09:38:48 +02:00