Commit Graph

3721 Commits

Author SHA1 Message Date
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
Julien Danjou ede5a54355 event: handle background changes
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-10 18:27:43 +02:00
Thomas Harning Jr 946b38147e awful.titlebar: Pull in missing dependencies and grab theme details
Modules beautiful and widget are required by the titlebar:
 * beautiful to retrieve theme details
 * widget for the buttons

Signed-off-by: Thomas Harning Jr <harningt@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-09 18:45:46 +02:00
Andrei Thorp 3c1f516758 Added swapbydirection to client.lua.in in awful.
Works similar to focus.bydirection, but swaps windows instead.
Also, added a generic local method get_client_in_direction for
use by (swap|focus)\.?bydirection.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-09 18:44:31 +02:00
Julien Danjou 76058c634f layout: add fullscreen
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-06 10:54:43 +02:00
Julien Danjou c8640013c2 lua: return on socket init failure
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-04 10:11:43 +02:00
Julien Danjou b3580fc519 wibox: handle position on new correctly
We do not need to call setposition since we are not attached.
We just need to set orientation and position_update to get the right
coords.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-03 08:57:58 +02:00
Julien Danjou a8124ad269 icons: reduce square size
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 17:36:34 +02:00
Julien Danjou 4ddc97d2d0 doc: change description in README
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 17:20:08 +02:00
Julien Danjou 82539bb1e6 desktop: change description
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 17:19:28 +02:00
Julien Danjou eead324684 ewmh: order WINDOW_TYPE
Some windows might have several types, so takes the highest.
2008-10-02 14:07:42 +02:00
Julien Danjou 45f7029fb9 client: push splash and dialog on modal layer
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 12:34:22 +02:00
Julien Danjou 85cbdc044b awesome: init systray earlier
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 12:24:05 +02:00
Julien Danjou df843a8452 awful.placement: fix no_overlap (FS#335)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 12:12:42 +02:00
Julien Danjou a4224193d8 widget: move widget_{set,get}
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 17:45:07 +02:00
Julien Danjou 683b1a9572 awful.widget: use margin instead of spaces
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 17:03:49 +02:00
Julien Danjou 842886b7d0 awful: add compatibility with old function names from util
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 16:26:30 +02:00
Julien Danjou 9dca1330c2 awful.client: maximize works in floating layout
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 15:05:54 +02:00
Julien Danjou 3f9b726065 awful.client: use right data array
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 15:00:33 +02:00