xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 19 months ago

Closed 19 months ago

Last modified 9 months ago

#2662 closed defect (fixed)

gedit can't be minimized from win32 client

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 4.0
Component: server Version: 3.0.x
Keywords: Cc:


It re-appears immediately.


  • window gets focus:
    window_state_updated(..) state updates: {'focused': True}, actual updates: {'focused': True}, server updates: {'focused': True}
    sync_state: setting _NET_WM_STATE=frozenset({'_NET_WM_STATE_FOCUSED'}) on 0xe000f8
  • it minimizes:
    WM_CHANGE_STATE: Iconic, serial=118920, last unmap serial=0x0
    sync_state: setting _NET_WM_STATE=frozenset({'_NET_WM_STATE_FOCUSED', '_NET_WM_STATE_HIDDEN'}) on 0xe000f8
  • client minimizes it:
    ClientWindow(6).window_state_updated(ClientWindow(6), <Gdk.EventWindowState object at 0x000000001cf4de00 (void at 0x0000000006eed160)>) changed_mask=<flags GDK_WINDOW_STATE_ICONIFIED | GDK_WINDOW_STATE_FOCUSED of type Gdk.WindowState>, new_window_state=<flags GDK_WINDOW_STATE_ICONIFIED of type Gdk.WindowState>
    client  12 @12.394 window_state_updated(..) state updates: {'iconified': True, 'focused': False}, actual updates: {'focused': False}, server updates: {'focused': False}
    ['configure-window', 2, -31999, -31999, 1588, 1124, {}, 0, {'focused': False}, True, 2, (1167, 169), ['mod2']]

And this triggers a change in the focused state.

  • Another strange event:
    _handle_iconic_update: set_state(1)
    sync_state: setting _NET_WM_STATE=frozenset({'_NET_WM_STATE_FOCUSED'}) on 0xe000f8
    get_wm_state(focused) state_names=('_NET_WM_STATE_FOCUSED',)
    sync_state: setting _NET_WM_STATE=frozenset() on 0xe000f8
    Property changed on 0xe000f8: WM_STATE
    Property changed on 0xe000f8: _NET_WM_STATE
    Property changed on 0xe000f8: _NET_WM_STATE

Adding a backtrace shows:

2020-03-21 20:16:31,284 sync_state: setting _NET_WM_STATE=frozenset({'_NET_WM_STATE_FOCUSED'}) on 0xa000f8
  File "/usr/bin/xpra", line 10, in <module>
    sys.exit(main(sys.argv[0], sys.argv))
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 115, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 451, in run_mode
    return run_server(error_cb, options, mode, script_file, args, current_display)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/server.py", line 341, in run_server
    return do_run_server(error_cb, opts, mode, xpra_file, extra_args, desktop_display)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/server.py", line 907, in do_run_server
    r = app.run()
  File "/usr/lib64/python3.7/site-packages/xpra/server/server_core.py", line 429, in run
  File "/usr/lib64/python3.7/site-packages/xpra/server/gtk_server_base.py", line 120, in do_run
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 1630, in main
    return _Gtk_main(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/xpra/x11/server.py", line 1010, in _process_configure_window
    changes = self._set_window_state(proto, wid, window, packet[8])
  File "/usr/lib64/python3.7/site-packages/xpra/x11/server.py", line 857, in _set_window_state
    window.set_property("iconic", iconified)
  File "/usr/lib64/python3.7/site-packages/xpra/x11/models/base.py", line 293, in _sync_iconic
  File "/usr/lib64/python3.7/site-packages/xpra/x11/models/base.py", line 479, in _state_remove
    self._internal_set_property("state", frozenset(curr))
  File "/usr/lib64/python3.7/site-packages/xpra/gtk_common/gobject_util.py", line 43, in _internal_set_property
  File "/usr/lib64/python3.7/site-packages/xpra/x11/models/base.py", line 278, in _sync_state

Change History (2)

comment:1 Changed 19 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

Fixed in r25714.

comment:2 Changed 9 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2662

Note: See TracTickets for help on using tickets.