Nux

Merge lp:~didrocks/nux/fix_initial_state into lp:nux

Proposed by Didier Roche-Tolomelli
Status: Merged
Merged at revision: 345
Proposed branch: lp:~didrocks/nux/fix_initial_state
Merge into: lp:nux
Diff against target: 14 lines (+2/-2)
1 file modified
NuxGraphics/Events.cpp (+2/-2)
To merge this branch: bzr merge lp:~didrocks/nux/fix_initial_state
Reviewer Review Type Date Requested Status
Jason Smith (community) Approve
Review via email: mp+59402@code.launchpad.net

Description of the change

initialize events mouse coordinate with value that can't match existing zone to avoid sending false positive FocusIn/FocusOut events when initiliazing. Real value will then be processed on mousemove (LP: #772185)

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

This has been lively approved by Jason.

Revision history for this message
Jason Smith (jassmith) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NuxGraphics/Events.cpp'
2--- NuxGraphics/Events.cpp 2011-04-06 21:54:09 +0000
3+++ NuxGraphics/Events.cpp 2011-04-28 16:47:01 +0000
4@@ -68,8 +68,8 @@
5 e_key_modifiers = 0;
6 e_key_repeat_count = 0;
7 e_mouse_state = 0;
8- e_x = 0;
9- e_y = 0;
10+ e_x = -1;
11+ e_y = -1;
12 e_x_root = 0;
13 e_y_root = 0;
14 e_dx = 0;

Subscribers

People subscribed via source and target branches