-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 When creating a wibox the call to simplewindow_orientation_set() caused a pixmap to be allocated, but the width and height weren't initialized yet. Thus, awesome tried to create a 0x0 pixmap which the X server doesn't like.
This fixes the error and I haven't noticed any bad effects due to this patch. Plus this should avoid some unneeded pixmap allocations. ;) W: awesome: xerror:289: X error: request=CreatePixmap, error=BadValue Signed-off-by: Uli Schlachter <[email protected]> - --- wibox.c | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wibox.c b/wibox.c index a95ae69..b7d7170 100644 - --- a/wibox.c +++ b/wibox.c @@ -712,13 +712,13 @@ luaA_wibox_new(lua_State *L) case Bottom: case Top: case Floating: - - simplewindow_orientation_set(&w->sw, East); + w->sw.orientation = East; break; case Left: - - simplewindow_orientation_set(&w->sw, North); + w->sw.orientation = North; break; case Right: - - simplewindow_orientation_set(&w->sw, South); + w->sw.orientation = South; break; } - -- 1.6.2 - -- "Do you know that books smell like nutmeg or some spice from a foreign land?" -- Faber in Fahrenheit 451 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkm/4UgACgkQABixOSrV99/PtACeJZccyfGshigxEWDHat6AMpcq wyMAnipYSRssSJGWjFEkTd/FHY9E4hIx =05ha -----END PGP SIGNATURE----- -- To unsubscribe, send mail to [email protected].
