From b14b52b60c94e7449633615cab45d692edca7a06 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 3 Apr 2009 17:15:14 +0200 Subject: [PATCH] awful.mouse: set the default cursor Signed-off-by: Julien Danjou --- awesome.c | 5 ++--- lib/awful/mouse.lua.in | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index 26bd86c35..16d94f773 100644 --- a/awesome.c +++ b/awesome.c @@ -510,13 +510,12 @@ main(int argc, char **argv) | XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_BUTTON_PRESS - | XCB_EVENT_MASK_BUTTON_RELEASE, - xcursor_new(globalconf.connection, XC_left_ptr) + | XCB_EVENT_MASK_BUTTON_RELEASE }; xcb_change_window_attributes(globalconf.connection, xutil_screen_get(globalconf.connection, screen_nbr)->root, - XCB_CW_EVENT_MASK | XCB_CW_CURSOR, + XCB_CW_EVENT_MASK, change_win_vals); ewmh_init(screen_nbr); systray_init(screen_nbr); diff --git a/lib/awful/mouse.lua.in b/lib/awful/mouse.lua.in index a5b5931d2..17e207aac 100644 --- a/lib/awful/mouse.lua.in +++ b/lib/awful/mouse.lua.in @@ -16,6 +16,7 @@ local math = math local ipairs = ipairs local capi = { + root = root, mouse = mouse, screen = screen, client = client, @@ -574,4 +575,7 @@ function client.resize(c, corner) end end +-- Set the cursor at startup +capi.root.cursor("left_ptr") + -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80