Kubuntu 14.04 (64 bits) com o KDE 4.13.3, Java Oracle 1.7.0_80-b15
Este problema ocorreu pela primeira vez em 12.04 e persiste.
A versão do Java não afeta o comportamento, ou seja, o mesmo acontece com 1.6 a 1.8.
Reproduzir:
- Inicie de 2 a 3 programas "regulares", como Firefox / Chrome / Kate.
- Inicie o aplicativo Java Swing (Intellij Idea / jvisualvm / paradigma visual / outro)
- Clique em "Mostrar a área de trabalho"
- Iniciar programa "regular" (firefox), mostra tela cheia
O problema: o foco do teclado ainda está no aplicativo Swing e, se você tentar digitar, a entrada será enviada para ele.
Isso é extremamente irritante se você usar algum IDE da família Intelij porque muitas vezes a digitação destinada a algum outro aplicativo acaba no seu arquivo de origem.
Eu já tentei com configurações diferentes do "Focus stealing prevention" do KDE (Configurações do sistema - > Comportamento da janela), mas sem sucesso.
Os aplicativos Java que não estão usando o Swing (por exemplo, o Eclipse) não apresentam esse problema. Apenas aplicativos Swing.
Alguém tem uma solução para esse problema ou, pelo menos:
- é capaz de confirmar
- direciona-me para o rastreador de bugs adequado (swing? kde?) para que eu possa denunciá-lo
xprop do aplicativo swing (ideia Intellij):
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x1e0003c
_NET_WM_PID(CARDINAL) = 3581
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "plasma-desktop"
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "Plasma", "Plasma"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x1e00235
window id # of group leader: 0x1e0003c
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 0, 0
program specified location: 0, 0
user specified size: 1920 by 1080
program specified size: 1920 by 1080
window gravity: Static
WM_CLIENT_MACHINE(STRING) = "OgrePC"
WM_COMMAND(STRING) = { "/usr/bin/plasma-desktop" }
ogre@OgrePC:~/aprojects-src/as_projects/besenica/besenica_core$ xprop
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x45, 0x0, 0x40, 0x3, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_WM_ICON_GEOMETRY(CARDINAL) = 107, 1011, 202, 34
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 20, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 20, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "5c2b1a8d-8274-46bf-abfa-a0db6a775d03"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x1, 0x1, 0x0, 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
WM_HINTS(WM_HINTS):
Client accepts input or input focus: False
Initial state is Normal State.
_NET_WM_ICON(CARDINAL) = Icon (128 x 128):
_NET_WM_PID(CARDINAL) = 9027
WM_CLIENT_MACHINE(STRING) = "OgrePC"
WM_PROTOCOLS(ATOM): protocols WM_TAKE_FOCUS, WM_DELETE_WINDOW
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 35443779
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "jetbrains-idea-ce"
WM_CLIENT_LEADER(WINDOW): window id # 0x3400005
_NET_WM_ICON_NAME(UTF8_STRING) = "gg_platform - [~/aprojects-src/as_projects/gg_platform] - gg_platform_kryo_server - IntelliJ IDEA 14.1.2"
WM_ICON_NAME(STRING) = "gg_platform - [~/aprojects-src/as_projects/gg_platform] - gg_platform_kryo_server - IntelliJ IDEA 14.1.2"
_NET_WM_NAME(UTF8_STRING) = "gg_platform - [~/aprojects-src/as_projects/gg_platform] - gg_platform_kryo_server - IntelliJ IDEA 14.1.2"
WM_NAME(STRING) = "gg_platform - [~/aprojects-src/as_projects/gg_platform] - gg_platform_kryo_server - IntelliJ IDEA 14.1.2"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: -3, -3
program specified location: -3, -3
program specified size: 1916 by 984
window gravity: NorthWest
xprop da área de trabalho:
_NET_WM_USER_TIME(CARDINAL) = 43963890
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_STATE(ATOM) =
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 31457847
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 133564
_NET_STARTUP_ID(UTF8_STRING) = "0"
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_NET_WM_ICON(CARDINAL) = Icon (16 x 16):
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x1e0003c
_NET_WM_PID(CARDINAL) = 3581
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "plasma-desktop"
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "Plasma", "Plasma"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x1e00235
window id # of group leader: 0x1e0003c
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 0, 0
program specified location: 0, 0
user specified size: 1920 by 1080
program specified size: 1920 by 1080
window gravity: Static
WM_CLIENT_MACHINE(STRING) = "OgrePC"
WM_COMMAND(STRING) = { "/usr/bin/plasma-desktop" }
xprop do programa (firefox) iniciado após "Mostrar área de trabalho"
_NET_WM_ICON_GEOMETRY(CARDINAL) = 1163, 1045, 176, 34
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACT
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 3, 3, 23, 4
_NET_FRAME_EXTENTS(CARDINAL) = 3, 3, 23, 4
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "5c2b1a8d-8274-46bf-abfa-a0db6a775d03"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3e6967d
bitmap id # of mask for icon: 0x3e6967e
window id # of group leader: 0x3e00001
WM_WINDOW_ROLE(STRING) = "browser"
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 44424608
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0
_NET_WM_ICON(CARDINAL) = Icon (16 x 16):
_NET_WM_ICON_GEOMETRY(CARDINAL) = 1163, 1045, 176, 34
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 3, 3, 23, 4
_NET_FRAME_EXTENTS(CARDINAL) = 3, 3, 23, 4
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "5c2b1a8d-8274-46bf-abfa-a0db6a775d03"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3e59b19
bitmap id # of mask for icon: 0x3e59b1a
window id # of group leader: 0x3e00001
_NET_STARTUP_ID(UTF8_STRING) = "OgrePC;1430761118;209192;3581_TIME42982583"
WM_WINDOW_ROLE(STRING) = "browser"
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 42982594
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_NET_WM_ICON(CARDINAL) = Icon (16 x 16):
░░░░
░▒░░░░░
░▒▒░▒░░░▒░
▒░░░▒▒▒▒▒▒
░░░░░░░▒▒▒▒░
░▒░░░▒▒▒▒▒▒░ ░
▒▒░▒▒▒▒▒▓▓▓ ░
▒▒▒▒▒▓▒▒▓▓▓ ░
▒▒▒▒░░░▒▒▓▒ ░
░▒▒▒▒▒▓▓▓▓░░░░
▒▒▒▒▒▒▒▒░░░▒
▒▒▒▒▒▒░░░▒░
░▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒░
░░
Icon (32 x 32):
░░░░
░░░░░░░░░░░░
░░░░░░░░░░░░░░
░░▒▒▒░░░░░░░░░░░ ░
░ ░▒▒▒▒░░░░░░░░░░░░▒ ░
░▒▒▒▒░░░░░░░░░░░▒▒▒▒░░ ░
▒▒▒░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒ ░
▒░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░▒░░░▒▒▒▒▒▒▒▒▒▒
░░░░░░░░░▒▒▒░▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒
░▒▒░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▓▓▒░ ░
░▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒ ▒
░▒▒▒░░░▒▒▒▓▒▒▒▒▒▒▓▓▓▓▓▓▒ ░▒
░▒▒▒▒░▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▒ ░░
░▒▒▒▒▒▒▒░░▒▒▓▓▒▒▒▒▓▓▓▓▓▒ ░
░▒▒▒▒▒▒▒░░░░▒░░░░░▓▓▓▓▒░░ ░
▒▒▒▒▒▒▒▒░░░░░░▒▒▒▓▓▓▓▒░░ ░░░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓░░░░░░░
░▒▒▒▒▒▒▒░░▒▓▓▓▓▓▓▓▓▓▒░░░░░░░
▒▒▒▒▒▒▒▒▒░▒▒▓▓▓▓▓▒▒░░░░░░▒░
░▒▒▒▒▒▒▒▒▒░▒▒▒▒▒▒░░░░░░░▒▒
▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░▒░
▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒░
Icon (48 x 48):
░░░░
░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░ ░
░░░░░░░░░░░░░░░░░░░░░▒░
░ ░░░▒▒▒▒▒░░░░░░░░░░░░░░░▒░ ░░
░░ ░░▒▒▒▒▒░░░░░░░░░░░░░░░░░░▒░ ░
░░▒░▒▒▒▒▒▒░░░░▒░░░░░░░░▒▒▒▒▒▒░▒░ ░
░▒▒▒▒░░░░░░░░▒▒▒░░░░░░▒▒▒▒▒▒▒░ ░░ ░░
▒▒▒░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ ░
▒▒░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
▒░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░░░░░░░░░░░░▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░░░░░░▒▒▒░▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░░░░░░░░░░░░░░▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
░░░░░░░░░░░░░░░░░ ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
░░▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░░▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒ ░░
░░▒▒▒▒░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒ ░ ░▒
░▒▒▒▒▒░░░░░░▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▒ ▒▒
░▒▒▒▒▒░░░░░▒▒▒▓▓▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒ ▒░
░▒▒▒▒▒▒░░░▒▒▒▒▓▓▓▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒ ▒░
░▒▒▒▒▒▒▒░▒▒▒▒░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒ ░░
░▒▒▒▒▒▒▒▒▒▒▒░░░▒▓▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓▓▓▒░ ░░
░▒▒▒▒▒▒▒▒▒▒▒░░░░░▒▒▒▒░░░░░▒▓▓▓▓▓▓▒░░ ░░
▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░▓▓▓▓▓▓░░░ ░░
░▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▓▓▓▓▓▓▓░░░ ░░░░░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒ ░░ ░░░░░
▒▒▒▒▒▒▒▒▒▒▒░▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░
▒▒▒▒▒▒▒▒▒▒▒▒░░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░▒▒
▒▒▒▒▒▒▒▒▒▒▒▒░░▒▓▓▓▓▓▓▓▓▓▓▓▒▓░░░░░░░░░▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▓▓▓▓▓▓▓▒░░░░░░░░░░▒▒░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▒░░░░░░░░░░░▒▓▒
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░▒▒░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░▒▒▒▒░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒░
░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░░▒▒▒▒▒▒▒▒▒▒░░░
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 65379096
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME(CARDINAL) = 42982583
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x3e59b17
WM_CLIENT_LEADER(WINDOW): window id # 0x3e00001
_NET_WM_PID(CARDINAL) = 9597
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "OgrePC"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 300 by 154
program specified maximum size: 32767 by 32767
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_ICON_NAME(STRING) = "Mozilla Firefox"
_NET_WM_ICON_NAME(UTF8_STRING) = "Mozilla Firefox"
WM_NAME(STRING) = "Mozilla Firefox"
_NET_WM_NAME(UTF8_STRING) = "Mozilla Firefox"