From 7f7aac4583f0fcc3accf17757a85bfb72f16f79f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 17 Mar 2009 19:50:21 +0100 Subject: [PATCH] wibox: fix a (harmless) X protocol error message 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 Signed-off-by: Julien Danjou --- wibox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wibox.c b/wibox.c index a95ae691..b7d71704 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; }