Commit Graph

2880 Commits

Author SHA1 Message Date
Julien Danjou 094d0ebc50 widget: new widget index method
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 16:35:07 +02:00
Julien Danjou 4508836133 statusbar: replace getfield/optstring with luaA_getopt_string()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 16:05:25 +02:00
Julien Danjou db07fd0362 widget: add missing mouse_remove in index()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 15:56:55 +02:00
Pierre Habouzit d45590fbcc 0 may be a valid function, LUA_REFNIL is what we want.
Also don't forget to unref the function on deletion.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 14:23:59 +02:00
Julien Danjou 086bada825 client: split out of setfloating layer handling
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 22:26:53 +02:00
Julien Danjou 775e634e13 tabulous: add documentation, cleanup
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 20:35:00 +02:00
Julien Danjou db88877587 lua: split getopt_string/getopt_lstring; fix mouse corner
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 17:33:05 +02:00
Julien Danjou d5ed48ffdd widget: use __index to get method
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 16:37:51 +02:00
Julien Danjou 68f0eda193 iconbox: remove
This can be replaced by textbox.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 16:37:16 +02:00
Julien Danjou d9be65bb1b ewmh: remove unused value
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 16:22:02 +02:00
Julien Danjou 6ec76c3b97 client: honor size hints is now by client
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 15:42:07 +02:00
Julien Danjou 92797c11b9 awesomerc: use table for floating rules
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 13:49:27 +02:00
Julien Danjou 3e6dbd64ee client: set fullscreen/modal windows on top of statusbars
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 13:41:25 +02:00
Michael Gehring 46aa0b55ac cmake: compile lua libs 2008-06-25 12:46:53 +02:00
Julien Danjou fee4116e3d Merge commit 'madcoder/master' 2008-06-25 11:48:22 +02:00
Pierre Habouzit ead90f618c Ignore keys that have a multibyte length of more than 1.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:45:57 +02:00
Pierre Habouzit 0f23ce88cb Divert lua string.len to a multibyte aware implementation.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:42:06 +02:00
Pierre Habouzit 232fb692eb More ignores.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:04:56 +02:00
Pierre Habouzit 5a07ee4946 Put keybindings in binary searchable arrays.
This patch sorts keybindings in arrays by keycode or keysym to speed up look
up using binary searches. This is a preliminary work to enable more powerful
keybindings stuff, where keybindings can be cascaded or why not, attached to
specific clients.

Interstingly enough, this patch saves 100ko of initial memory (Heap) usage here.

The underlying idea is that we should be able to define keybindings_t as
trees of keybindings_t which would then define key sequences.

The OO approach kind of make sense in fact, since you create a base
keybinding (e.g. reacting on Mod4-w) and then you will probably (with
appropriate apis) be able to populate new submaps from that point more or
less dynamically.

And if you have two keybindings on Mod4-w, then adding them will replace the
previous one. This means that you can fake per-client bindings with e.g.:

  k_default = keybindings.new({"Mod4"}, "w", something);
  k_mplayer = keybindings.new({"Mod4"}, "w", something_else);
  k_default:add()

and in your focus hook:

  if /* code for testing if it's mplayer */ then
      k_mplayer:add()
  else
      k_default:add()
  end

This would not work before, it does now.

It will take way more sense with submaps of course.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:04:56 +02:00
Pierre Habouzit 8c717622fd Put keybindings in arrays.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:04:56 +02:00
Pierre Habouzit 4d7a7694ae Calling destructor on splice is wrong, take doesn't want it e.g.
Also fix one assert.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 11:04:56 +02:00
Pierre Habouzit d3b030aa2c More ignores.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 10:52:53 +02:00
Pierre Habouzit 4c288c006b Put keybindings in binary searchable arrays.
This patch sorts keybindings in arrays by keycode or keysym to speed up look
up using binary searches. This is a preliminary work to enable more powerful
keybindings stuff, where keybindings can be cascaded or why not, attached to
specific clients.

Interstingly enough, this patch saves 100ko of initial memory (Heap) usage here.

The underlying idea is that we should be able to define keybindings_t as
trees of keybindings_t which would then define key sequences.

The OO approach kind of make sense in fact, since you create a base
keybinding (e.g. reacting on Mod4-w) and then you will probably (with
appropriate apis) be able to populate new submaps from that point more or
less dynamically.

And if you have two keybindings on Mod4-w, then adding them will replace the
previous one. This means that you can fake per-client bindings with e.g.:

  k_default = keybindings.new({"Mod4"}, "w", something);
  k_mplayer = keybindings.new({"Mod4"}, "w", something_else);
  k_default:add()

and in your focus hook:

  if /* code for testing if it's mplayer */ then
      k_mplayer:add()
  else
      k_default:add()
  end

This would not work before, it does now.

It will take way more sense with submaps of course.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 10:52:28 +02:00
Pierre Habouzit 8c1aec2e96 Put keybindings in arrays.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 09:45:08 +02:00
Pierre Habouzit 3a1c9e0cfb Calling destructor on splice is wrong, take doesn't want it e.g.
Also fix one assert.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-25 09:45:08 +02:00
Julien Danjou 5d3d45f0cf awful: rename menu to prompt
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 09:07:57 +02:00
Julien Danjou 4a318e99fb awful: add more documentation
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 09:03:29 +02:00
Michael Gehring 08762261c6 cmake: cleanup paths variables/fix AWESOME_CONF_PATH 2008-06-25 04:00:19 +02:00
Michael Gehring a786d51a3c cmake: make building luadoc an option 2008-06-25 03:01:22 +02:00
Félix C. Morency 0c82372362 set cmake policy 2.6 if supported 2008-06-25 02:32:18 +02:00
Félix C. Morency 9b462ae4f0 added sysconfdir support 2008-06-25 02:03:55 +02:00
Félix C. Morency db8c1ffbf2 make cpack use destdir instead 2008-06-25 01:56:48 +02:00
Pierre Habouzit b19aace542 Fix draw_align_fromstr calls.
Note that it's undefined to have side effects on an argument and pass this
argument again to another function.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-24 22:40:34 +02:00
Julien Danjou 7b3983bfa0 "recent version" has no mean
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 22:30:46 +02:00
Julien Danjou 0aff415f37 version: add GdkPixBuf version
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 21:01:24 +02:00
Julien Danjou a055634d4e draw: use len param in draw_align_fromstr()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 20:34:02 +02:00
Julien Danjou 6ff843e65e doc: fix README with cmake and -DWITH_ switches
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 20:28:57 +02:00
Julien Danjou 7e104aef8c build: use GdkPixBuf by default
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 20:28:45 +02:00
Julien Danjou eb13ebcbf7 version: print compilation options
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 20:25:42 +02:00
Julien Danjou 678c9e3334 event: spurious printf removal
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 19:58:24 +02:00
Julien Danjou ec414ae39b systray: set orientation
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 19:56:10 +02:00
Julien Danjou 104df8912b systray: set handler before ewmh/systray init
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 19:55:14 +02:00
Julien Danjou 4ebdbdd649 systray: fix stack and send event
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 19:54:54 +02:00
MATSUU Takuto 2b917037ed cmake 2.4 has no LIMIT syntax in file command
cmake 2.4 http://www.cmake.org/HTML/CMake-2.4.html
  FILE(READ filename variable)

cmake 2.6 http://www.cmake.org/HTML/cmake-2.6.html
  file(READ filename variable [LIMIT numBytes] [OFFSET offset] [HEX])
2008-06-24 18:52:35 +02:00
Michael Gehring c19fde1f01 cmake: only awesome-client needs to link readline 2008-06-24 18:15:20 +02:00
Michael Gehring 9d9bb48094 cmake: awesome-client depends on generated sources 2008-06-24 18:15:20 +02:00
Julien Danjou f27fd17fd4 systray: send event with NO_EVENT mask
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 17:54:39 +02:00
Julien Danjou b1eb046aec systray: raise on manage
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 17:44:30 +02:00
Julien Danjou f8f882d948 systray: fix scan() and stop managing XEMBED
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 17:39:22 +02:00
Julien Danjou 38c48cf374 lua: remap on restart
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 17:39:06 +02:00