← Back to team overview

dx-packages team mailing list archive

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

 

** Changed in: unity
       Status: Incomplete => Invalid

** Changed in: unity (Ubuntu)
       Status: Incomplete => Invalid

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

Title:
  Full screen Qt windows don't get focus

Status in Unity:
  Invalid
Status in unity package in Ubuntu:
  Invalid

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