← Back to team overview

touch-packages team mailing list archive

[Bug 1079929] Re: Full screen Qt windows don't get focus

 

Seems to work in 14.04 as it should.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/1079929

Title:
  Full screen Qt windows don't get focus

Status in Unity:
  Incomplete
Status in unity package in Ubuntu:
  Incomplete

Bug description:
  The problem here is that when a Qt window/widget is shown by calling
  QWidget::showFullScreen(), the resulting full screen window doesn't
  get keyboard focus despite setFocus() being called. This is confusing
  especially with games using only keyboard since the user needs to
  click on the window.

  This is a bug in Unity, because the same code works correctly on
  Windows and Unity2D.

  Test program attached. It opens a full screen window, which exists and
  prints a message when it gets a key event.

  Steps to reproduce:

  1) Run the test program:
  $ qmake
  $ make
  $ ./FocusBug

  2) Press some keys.

  What should happen:
  - The program should exit and print a message "Key pressed!".

  What happens:
  - Nothing, unless the user first clicks on the window.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: unity 6.10.0-0ubuntu2
  ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
  Uname: Linux 3.5.0-18-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.6.1-0ubuntu6
  Architecture: amd64
  CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
  Date: Sat Nov 17 00:59:24 2012
  InstallationDate: Installed on 2012-10-19 (28 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: unity
  UpgradeStatus: Upgraded to quantal on 2012-10-19 (28 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1079929/+subscriptions