Commit Graph

4749 Commits

Author SHA1 Message Date
Julien Danjou ce5c171b36 titlebar: emit signal when changing titlebar property
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 11:54:22 +02:00
Julien Danjou 0f8bbb775b titlebar: fix removal of too much elements (FS#603)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 11:22:26 +02:00
Julien Danjou 0d03ea88d5 luaa: emit deprecation signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 18:05:44 +02:00
Julien Danjou b83766b4c9 luaa: emit signal on runtime error
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:55:47 +02:00
Julien Danjou 3739aabda1 lualib: allow to replace error handling function
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:53:51 +02:00
Gregor Best 3f259d0ed2 awesomerc: fix layout for promptbox
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:07:36 +02:00
Gregor Best 523fcb1690 widget.layout.horizontal: fix y coordinate
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:06:13 +02:00
Julien Danjou 9cee78f3e2 widget: fix widget_render() stack leftover
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:05:19 +02:00
Julien Danjou 47f3925e3b widget: widget_geometries() is static
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 16:44:05 +02:00
Julien Danjou 0b3b13ba19 luaa: restart awesome on Lua PANIC
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 16:04:40 +02:00
Julien Danjou d126b554db textbox: add .height
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:40:49 +02:00
Julien Danjou 6cf9f509c5 textbox: extents() honors user-set width
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:39:34 +02:00
Julien Danjou 1060470b3f draw: stop requesting extents
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:38:17 +02:00
Julien Danjou 34967f7b13 textbox: fix integer overflow
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:34:05 +02:00
Julien Danjou 69999fee93 awful.widget.prompt: change ellipsize to start
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:45:42 +02:00
Julien Danjou 107f1cf1dc widget.layout.horizontal: simplify .resize handling
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:37:18 +02:00
Cedric GESTES ddc159f57e rules: add a switchtotag rule to select the tag after setting it for a client
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:01:07 +02:00
Julien Danjou a6c4459a3a luaa: replace os.execute()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 12:08:02 +02:00
Uli Schlachter d31b7666a1 spawn: add spawn_system() which works like system()
This adds a small function which behaves exactly like libc's system(), but also
clears the masked signal set in the child process.

This is needed because libev 3.8 masks signals. :(

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 12:07:50 +02:00
Julien Danjou f32e6a9b13 awful.widget.tasklist: add label.focused (FS#595)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:21:32 +02:00
Julien Danjou f4ea2f3052 awesome: close lua in atexit()
So it does it also when restarting.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:12:54 +02:00
Cedric GESTES 36180b9a41 tasklist: update tasklist when a client is hidden
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:08:57 +02:00
Uli Schlachter ab6cd898c1 awful.widget: Don't use a resizable imagebox
awful.widget.graph and progressbar both create an imagebox. The default is
resize = true which means the image is scaled up inside the wibox if
:set_height() is used.

Setting widget.resize = false avoids this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:08:14 +02:00
Uli Schlachter ac60bbd147 progressbar: set_value() should update()
set_value() didn't call update() and thus had no visible effect on the
progressbar.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:04:18 +02:00
Uli Schlachter c0661abc61 image.argb32(): Check for zero height or width
This makes image.argb32() fail in a better way if it is called with a zero size.

Bug found by anrxc and reported a FS#597 and FS#599.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:04:09 +02:00
Uli Schlachter 1c57970dd9 awful.widget.{graph,progressbar}: Un-local functions
This code accesses these functions via _M['set_height'], but if these are local
functions they aren't available this way. Un-local-ing helps here.

This was noticed by anrxc when he set a widget's height to 0.9. These functions
should have caught this invalid height and ignore it, but because they weren't
actually used this error checking was bypassed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:04:05 +02:00
Cedric GESTES cbaefeed9d rules: accept rule if regexp is ok or value is equal
correct problem matching expression with - or special regexp character

Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:58:58 +02:00
Julien Danjou db10f783a6 client: return nil if client is not attached to a screen yet
Can happen with the "new" class signal.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:56:56 +02:00
Uli Schlachter 023a216f67 awful.client: Emit correct signal
When awful.client.property.set() was called it always emitted property::floating
on the client. Instead it should emit propert::<name of the property> of course!

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:54:05 +02:00
Gregor Best efbba53507 awful.client: fix local function idx
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:53:31 +02:00
Brian Gianforcaro c9ec34e61e Fix doxygen generation warnings
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-26 09:15:57 +02:00
koniu 105a4ce41f naughty: fix margin when using icon
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-26 09:14:57 +02:00
Julien Danjou 7ecf1afdfd draw: move padding stuff inside textbox
This is only used by textbox.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 20:24:38 +02:00
Julien Danjou a71c5efd10 awful.util: pread return error
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 20:16:48 +02:00
koniu 58eb27a99b naughty: port sizing to the new widget margin code
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 19:17:18 +02:00
Julien Danjou 4a81695f8b systray: merge geometry and extents
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:29:19 +02:00
Julien Danjou 6922df8b46 textbox: merge geometry and extents function
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:28:20 +02:00
Julien Danjou 59a0f7e34b imagebox: merge geometry and extents
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:26:58 +02:00
Julien Danjou fdefa387aa widget: remove useless geometry field
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:24:19 +02:00
Julien Danjou 5f43d178f7 awful.menu: use iconbox widget rather than bg_image
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:13:19 +02:00
Julien Danjou 26c446fa82 textbox: add valign
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 17:56:48 +02:00
Julien Danjou f149a6a55d property: fix typo in wm_name and wm_icon_name prop handling
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:52:18 +02:00
Julien Danjou 53ca058ebb awful.widget.layout: add support for margins
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:42:54 +02:00
Julien Danjou 1337129191 property: split _NET_WM_{ICON_,}NAME from WM_{ICON_,}NAME
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:39:10 +02:00
Julien Danjou fb9aefa85a add exit signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:30:19 +02:00
Julien Danjou 8389b8c5d6 awful.hooks: deprecate
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:28:59 +02:00
Julien Danjou 924b659e93 awesome.1: remove \ before +
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:57:10 +02:00
Julien Danjou f3e527efe7 awesomerc: add Mod4+n to minimize
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:56:17 +02:00
Julien Danjou b91ebd1947 awesomerc: remove bad comment
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:54:11 +02:00
Gregor Best df07681109 awful.tag: fix viewidx()
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:49:53 +02:00