wibox' geometry weirdness

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi list, today I noticed the following weirdness: w = wibox({border_width = 30, border_color = "blue"}) w.screen = 1 w:geometry({width = 90, height = 90}) The above lua snippet creates a wibox whose out border (wibox content + wibox border) is

Re: [Draft] Introduction of Widget Layouts

2009-07-25 Thread Uli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gregor Best wrote: > Okay, first bug reports are coming in, and I love that :) Uli reported > that awful.widget.graph and awful.widget.progressbar don't take the > "layout" parameter, a thing I indeed missed. A fixed version is > attached. I'm also w

[RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi list, these patches implement support for the SHAPE extension. The lua api is documented in the wiki [1]. I don't have much to say about these... The code for converting an image into a 1bpp pixmap is not really nice but it works. The code that

Re: [RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Uli Schlachter wrote: > Hi list, > > these patches implement support for the SHAPE extension. ^ Nope, *these* patches (damn...). - -- "Do you know that books smell like nutmeg or some spice from a foreign land?"

Re: [RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Gregor Best
On Sat, Jul 25, 2009 at 02:58:58PM +0200, Uli Schlachter wrote: > [...] > I'm not sure if this code is ready to go in. E.g. there is no way to check if > the SHAPE extension is available for lua code. Would we need something like > this? What would this API look like. > [...] I'd say we shouldn't

Re: [RFC Patches] SHAPE extension support for lua

2009-07-25 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gregor Best wrote: > On Sat, Jul 25, 2009 at 02:58:58PM +0200, Uli Schlachter wrote: >> [...] >> I'm not sure if this code is ready to go in. E.g. there is no way to check if >> the SHAPE extension is available for lua code. Would we need something l

Creating Lua Playground

2009-07-25 Thread masterLoki
Hi everyone I've playing around with lua and obvious, now I'm a little more confident with my lua coding, but not to much. I'm trying to figure out how to set up a playground so I can load awesome libraries into my scripts and test them so I don't have to restart awesome each time and prevent