xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Ticket #469, comment 43


Ignore:
Timestamp:
09/26/16 14:35:08 (3 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #469, comment 43

    initial v1  
    1313* report the correct window
    1414* force this window up to the top of the window stack
    15 Unfortunately, GTK is so messed up at that point that we cannot use [http://pygtk.org/pygtk2reference/class-gdkwindow.html#method-gdkwindow--raise_ gdk.Window.raise_()] (this raises the wrong window!) and so we have to use [http://pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--present gtk.Window.present()], which has side effects: it makes the window flicker as we process a brand new map event for every mouse movement...
    16 (maybe we could re-write this using Cython to call [https://developer.apple.com/reference/appkit/nswindow/1419208-makekeyandorderfront?language=objc makeKeyAndOrderFront] directly on the nswindow)
     15Unfortunately, GTK is so messed up at that point that we cannot use [http://pygtk.org/pygtk2reference/class-gdkwindow.html#method-gdkwindow--raise_ gdk.Window.raise_()] (this raises the wrong window!) and so we have to use [http://pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--present gtk.Window.present()], which has side effects: it makes the window flicker as we process a brand new map event for every mouse movement... this stops as soon as you move the mouse outside of the window.
     16(maybe we could re-write this using Cython to call [https://developer.apple.com/reference/appkit/nswindow/1419208-makekeyandorderfront?language=objc makeKeyAndOrderFront] directly on the nswindow - assuming we can get the handle of the correct one..)
    1717
    1818This workaround can be disabled by running the client with {{{XPRA_OSX_FOCUS_WORKAROUND=0}}}.