~unity-team/nux/trunk

« back to all changes in this revision

Viewing changes to NuxGraphics/Events.cpp

  • Committer: Didier Roche
  • Date: 2011-05-04 09:55:03 UTC
  • mfrom: (344.1.1 nux)
  • Revision ID: didier.roche@canonical.com-20110504095503-7flubqni4vy5mx43
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)

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    e_key_modifiers = 0;
69
69
    e_key_repeat_count = 0;
70
70
    e_mouse_state = 0;
71
 
    e_x = 0;
72
 
    e_y = 0;
 
71
    e_x = -1;
 
72
    e_y = -1;
73
73
    e_x_root = 0;
74
74
    e_y_root = 0;
75
75
    e_dx = 0;