~josharenson/unity8/fix_tps_active

Viewing all changes in revision 1909.

  • Committer: Josh Arenson
  • Date: 2015-08-18 19:50:35 UTC
  • Revision ID: joshua.arenson@canonical.com-20150818195035-mfz45cuagi11cztf
Don't force a surface to lose focus when its parent is updated.

This workarround prevents the closure of a trusted prompt session from causing the underlying surface to lose focus and then gain it right back. This brief loss of focus causes Qt.application.active to momentarily be set to 'false'. Currently, this is just a workarround and hopefuly by still setting focus to 'true' after the surface is added to the scene, active focus will still be updated correctly.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: