awful.mouse: set the default cursor
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
97baf01cec
commit
b14b52b60c
|
@ -510,13 +510,12 @@ main(int argc, char **argv)
|
||||||
| XCB_EVENT_MASK_STRUCTURE_NOTIFY
|
| XCB_EVENT_MASK_STRUCTURE_NOTIFY
|
||||||
| XCB_EVENT_MASK_PROPERTY_CHANGE
|
| XCB_EVENT_MASK_PROPERTY_CHANGE
|
||||||
| XCB_EVENT_MASK_BUTTON_PRESS
|
| XCB_EVENT_MASK_BUTTON_PRESS
|
||||||
| XCB_EVENT_MASK_BUTTON_RELEASE,
|
| XCB_EVENT_MASK_BUTTON_RELEASE
|
||||||
xcursor_new(globalconf.connection, XC_left_ptr)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xcb_change_window_attributes(globalconf.connection,
|
xcb_change_window_attributes(globalconf.connection,
|
||||||
xutil_screen_get(globalconf.connection, screen_nbr)->root,
|
xutil_screen_get(globalconf.connection, screen_nbr)->root,
|
||||||
XCB_CW_EVENT_MASK | XCB_CW_CURSOR,
|
XCB_CW_EVENT_MASK,
|
||||||
change_win_vals);
|
change_win_vals);
|
||||||
ewmh_init(screen_nbr);
|
ewmh_init(screen_nbr);
|
||||||
systray_init(screen_nbr);
|
systray_init(screen_nbr);
|
||||||
|
|
|
@ -16,6 +16,7 @@ local math = math
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local capi =
|
local capi =
|
||||||
{
|
{
|
||||||
|
root = root,
|
||||||
mouse = mouse,
|
mouse = mouse,
|
||||||
screen = screen,
|
screen = screen,
|
||||||
client = client,
|
client = client,
|
||||||
|
@ -574,4 +575,7 @@ function client.resize(c, corner)
|
||||||
end
|
end
|
||||||
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
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue