xpra icon
Bug tracker and wiki

Opened 3 weeks ago

Last modified 3 weeks ago

#2852 new defect

Seamless JetBrains apps do not gain focus

Reported by: stdedos Owned by: Antoine Martin
Priority: major Milestone: 4.1
Component: client Version: 3.0.x
Keywords: Cc:

Description (last modified by stdedos)

Opposite of #2723

"Xpra-Python3-x86_64_4.1-r27002\xpra_cmd" attach ssh://user@ip/2 --ssh="plink -ssh -agent" --modal-windows=no --title="@title@ on @@/@server-display@" --headerbar=off --opengl=no --bandwidth-limit=6Mbps

2020-07-23 12:56:36,692 Xpra GTK3 client version 4.1-r27002 64-bit
2020-07-23 12:56:36,696  running on Microsoft Windows 10
2020-07-23 12:56:37,914 GStreamer version 1.16.2 for Python 3.8.4 64-bit
2020-07-23 12:56:38,670 keyboard layout code 0x409
2020-07-23 12:56:38,671 identified as 'United States - English' : us
2020-07-23 12:56:38,938  keyboard settings: layout=us
2020-07-23 12:56:38,941  desktop size is 4160x1440 with 1 screen:
2020-07-23 12:56:38,941   Default (1100x381 mm - DPI: 96x96) workarea: 4160x1400
2020-07-23 12:56:38,941     Generic PnP Monitor 1600x900 at 0x534 (309x174 mm - DPI: 131x131) workarea: 1600x860 at 0x534
2020-07-23 12:56:38,942     C32JG5x 2560x1440 at 1600x0 (697x392 mm - DPI: 93x93) workarea: 2560x1400 at 1600x0
2020-07-23 12:56:45,718 enabled remote logging
2020-07-23 12:56:45,721 Xpra GTK3 X11 server version 3.0.10-r26630 64-bit
2020-07-23 12:56:45,723  running on Linux Ubuntu 16.04 xenial
2020-07-23 12:56:45,741 Attached to ip:22
2020-07-23 12:56:45,746  (press Control-C to detach)


(xpra_cmd:12568): Pango-WARNING **: 12:56:46.481: couldn't load font "Bitstream Vera Sans Not-Rotated 14.662109375", falling back to "Sans Not-Rotated 14.662109375", expect ugly output.
2020-07-23 12:56:47,504 UI thread is now blocked
2020-07-23 12:56:47,921 UI thread is running again, resuming
2020-07-23 14:07:38,138 server is not responding, drawing spinners over the windows
2020-07-23 14:07:39,903 server is OK again
2020-07-23 14:48:19,589 enabled debugging for:
2020-07-23 14:48:19,596  - Logger(xpra.client.client_window_base, focus)
2020-07-23 14:48:19,599  - Logger(xpra.client.mixins.window_manager, focus)
2020-07-23 14:48:19,603  - Logger(xpra.client.gtk_base.gtk_client_window_base, focus, grab)
2020-07-23 14:48:23,620 focus-out-event for wid=8
2020-07-23 14:48:23,623 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x00000000053c6d60 (void at 0x000000001b7a6830)>)
2020-07-23 14:48:23,625 ClientWindow(8) focus_change(ClientWindow(8), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:23,625 update_focus(8, False) focused=8, grabbed=None
2020-07-23 14:48:23,627 focus-in-event for wid=5063
2020-07-23 14:48:23,629 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x00000000053c6d60 (void at 0x000000001b7c4500)>) been_mapped=True
2020-07-23 14:48:23,630 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:23,632 update_focus(5063, True) focused=None, grabbed=None
2020-07-23 14:48:23,637 send_focus(5063)
2020-07-23 14:48:23,639 recheck_focus() wid=8, focused=5063, latest=False
2020-07-23 14:48:23,641 recheck_focus() wid=5063, focused=5063, latest=True
2020-07-23 14:48:28,367 focus-out-event for wid=5063
2020-07-23 14:48:28,385 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x00000000053d3130 (void at 0x000000001b7c45a0)>)
2020-07-23 14:48:28,390 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:28,393 update_focus(5063, False) focused=5063, grabbed=None
2020-07-23 14:48:28,397 focus-in-event for wid=8
2020-07-23 14:48:28,399 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x00000000053d3130 (void at 0x000000001b7a6830)>) been_mapped=True
2020-07-23 14:48:28,401 ClientWindow(8) focus_change(ClientWindow(8), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:28,403 update_focus(8, True) focused=None, grabbed=None
2020-07-23 14:48:28,405 send_focus(8)
2020-07-23 14:48:28,412 recheck_focus() wid=5063, focused=8, latest=False
2020-07-23 14:48:28,415 recheck_focus() wid=8, focused=8, latest=True
2020-07-23 14:48:29,255 focus-out-event for wid=8
2020-07-23 14:48:29,266 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x0000000000787810 (void at 0x000000001b7a6e70)>)
2020-07-23 14:48:29,268 ClientWindow(8) focus_change(ClientWindow(8), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:29,271 update_focus(8, False) focused=8, grabbed=None
2020-07-23 14:48:29,274 focus-in-event for wid=5063
2020-07-23 14:48:29,276 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x00000000007a53b0 (void at 0x000000001b7eeaa0)>) been_mapped=True
2020-07-23 14:48:29,278 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:29,280 update_focus(5063, True) focused=None, grabbed=None
2020-07-23 14:48:29,282 send_focus(5063)
2020-07-23 14:48:29,287 recheck_focus() wid=8, focused=5063, latest=False
2020-07-23 14:48:29,291 recheck_focus() wid=5063, focused=5063, latest=True
2020-07-23 14:48:30,264 update_focus(0, False) focused=5063, grabbed=None
2020-07-23 14:48:30,268 focus-out-event for wid=5063
2020-07-23 14:48:30,269 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x00000000007ab400 (void at 0x000000001b7c4500)>)
2020-07-23 14:48:30,271 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:30,272 update_focus(5063, False) focused=None, grabbed=None
2020-07-23 14:48:30,273 recheck_focus() wid=5063, focused=None, latest=False
2020-07-23 14:48:30,288 send_lost_focus() focused=None
2020-07-23 14:48:30,290 send_focus(0)
2020-07-23 14:48:30,351 focus-in-event for wid=5595
2020-07-23 14:48:30,362 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x00000000007ab130 (void at 0x000000001b7eeaa0)>) been_mapped=True
2020-07-23 14:48:30,364 ClientWindow(5595) focus_change(ClientWindow(5595), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:30,366 update_focus(5595, True) focused=None, grabbed=None
2020-07-23 14:48:30,367 send_focus(5595)
2020-07-23 14:48:30,370 recheck_focus() wid=5595, focused=5595, latest=True
2020-07-23 14:48:30,850 update_focus(0, False) focused=5595, grabbed=None
2020-07-23 14:48:30,864 focus-out-event for wid=5595
2020-07-23 14:48:30,868 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x0000000021978c20 (void at 0x000000001b7a6dd0)>)
2020-07-23 14:48:30,874 ClientWindow(5595) focus_change(ClientWindow(5595), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:30,877 update_focus(5595, False) focused=None, grabbed=None
2020-07-23 14:48:30,881 send_lost_focus() focused=None
2020-07-23 14:48:30,886 send_focus(0)
2020-07-23 14:48:30,889 recheck_focus() wid=5595, focused=None, latest=False
2020-07-23 14:48:30,944 _unfocus() wid=5595, focused=None
2020-07-23 14:48:30,949 focus-in-event for wid=5063
2020-07-23 14:48:30,952 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x0000000021978c20 (void at 0x000000001b7c4500)>) been_mapped=True
2020-07-23 14:48:30,957 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:30,960 update_focus(5063, True) focused=None, grabbed=None
2020-07-23 14:48:30,963 send_focus(5063)
2020-07-23 14:48:30,966 recheck_focus() wid=5063, focused=5063, latest=True
2020-07-23 14:48:34,371 focus-out-event for wid=5063
2020-07-23 14:48:34,382 do_xpra_focus_out_event(<Gdk.EventFocus object at 0x0000000000787ae0 (void at 0x000000001b7eeaa0)>)
2020-07-23 14:48:34,386 ClientWindow(5063) focus_change(ClientWindow(5063), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=False, _been_mapped=True
2020-07-23 14:48:34,389 update_focus(5063, False) focused=5063, grabbed=None
2020-07-23 14:48:34,396 focus-in-event for wid=8
2020-07-23 14:48:34,399 do_xpra_focus_in_event(<Gdk.EventFocus object at 0x0000000000787ae0 (void at 0x000000001b7a6f10)>) been_mapped=True
2020-07-23 14:48:34,401 ClientWindow(8) focus_change(ClientWindow(8), <GParamBoolean 'has-toplevel-focus'>) has-toplevel-focus=True, _been_mapped=True
2020-07-23 14:48:34,403 update_focus(8, True) focused=None, grabbed=None
2020-07-23 14:48:34,408 send_focus(8)
2020-07-23 14:48:34,411 recheck_focus() wid=5063, focused=8, latest=False
2020-07-23 14:48:34,415 recheck_focus() wid=8, focused=8, latest=True
2020-07-23 14:48:34,661 _unfocus() wid=5643, focused=8
2020-07-23 14:48:38,554 disabled debugging for:
2020-07-23 14:48:38,556  - Logger(xpra.client.client_window_base, focus)
2020-07-23 14:48:38,558  - Logger(xpra.client.mixins.window_manager, focus)
2020-07-23 14:48:38,559  - Logger(xpra.client.gtk_base.gtk_client_window_base, focus, grab)

However, I don't know how to trigger that sequence of events.

I know that I had time to:

  • observe it (LibreOffice to PyCharm, Ctrl+P triggered "Print" instead of ala-Sublime "Go to file ..."),
  • switch to terminal, enable client diagnostics
  • re-trigger it (Triggered "Complete last command" on terminal), and
  • work around it (raise and re-minimize an app).

Attachments (1)

redact-xpra-server-p2723.log (491.2 KB) - added by stdedos 3 weeks ago.

Download all attachments as: .zip

Change History (2)

Changed 3 weeks ago by stdedos

comment:1 Changed 3 weeks ago by stdedos

Description: modified (diff)
Note: See TracTickets for help on using tickets.