]> git.sur5r.net Git - i3/i3/commit
Only warp pointer once during x_push_changes()
authorPeter Bui <pnutzh4x0r@gmail.com>
Fri, 12 Aug 2011 01:54:59 +0000 (21:54 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Aug 2011 10:12:40 +0000 (12:12 +0200)
commit36224f86d1b61d73c60c757ddcc724dc70f56c28
treeb6788db4dda6a5496034498b4ceb5ea421d1417e
parent637d2a3d622dead4aa7b71746bcfbc0caed24bc9
Only warp pointer once during x_push_changes()

- Introduce warp_to static variable in x.c that stores the coordinates
  to warp to as a Rect.

- Add x_set_warp_to function to set this variable.  Use in _tree_next,
  workspace_show, and con_move_to_workspace.

- In x_push_chanages, if warp_to is set, then call xcb_warp_pointer_rect
  and then reset it to NULL.

This fixes all know bugs for pointer warping for me.
include/x.h
src/con.c
src/tree.c
src/workspace.c
src/x.c
src/xcb.c