window: Add a widget default cursor convenience helper
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Nov 2012 19:54:35 +0000 (14:54 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Nov 2012 19:54:35 +0000 (14:54 -0500)
commitbf74d5242ab457019cf7ba70f845e9d253a811bf
treead55fd3737fd2751edc2e05a10a7686e60dc8998
parentec07669a082d7c3156692a24fdbd4824e7cb9d7d
window: Add a widget default cursor convenience helper

In a few cases, we set a motion handler just to be able to set a fixed
cursor.  This adds a default cursor helper that can be used in those cases.
In case of the 'transformed' test case, we also avoid a brief flicker
of the pointer cursor, which is set on enter when the move grab is lifted.
clients/flower.c
clients/transformed.c
clients/window.c
clients/window.h