[winswitch] Mouse stops working

Thomas Mainka thomas.mainka at gmail.com
Sun Jun 5 10:16:29 BST 2016


Hi,


On Sun, Jun 5, 2016 at 6:50 AM, Antoine Martin <antoine at nagafix.co.uk> wrote:
> That's very odd. The server is clearly receiving the mouse position
> packets since you get the mouseover effects.
> Maybe the event gets delivered to the wrong window and/or the focus ends
> up in the wrong place.

>From the "xpra -d mouse" log Xpra clearly sends the mouse events to an
xev window:

  2016-06-05 11:01:44,465 raising WindowModel(0xe00001)
  2016-06-05 11:01:44,465 move_pointer(10, (637, 909))

Its just that the xev window only gets keypresses, and the
FocusIn/FocusOut events:

  FocusIn event, serial 33, synthetic NO, window 0xe00001,
      mode NotifyNormal, detail NotifyNonlinear

  KeymapNotify event, serial 33, synthetic NO, window 0x0,
      keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
             0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

  KeyPress event, serial 33, synthetic NO, window 0xe00001,
      root 0x25d, subw 0x0, time 1555897924, (38,48), root:(662,819),
      state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
      XLookupString gives 0 bytes:
      XmbLookupString gives 0 bytes:
      XFilterEvent returns: False

  KeyRelease event, serial 36, synthetic NO, window 0xe00001,
      root 0x25d, subw 0x0, time 1555898048, (38,48), root:(662,819),
      state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
      XLookupString gives 0 bytes:
      XFilterEvent returns: False

  FocusOut event, serial 36, synthetic NO, window 0xe00001,
      mode NotifyNormal, detail NotifyNonlinear

"xpra info" on the other hand properly updates the cursor position,
and the focus seems right, too:

  state.focused=12
  [...]
  window.12.batch.focus=(0, 100)
  window.12.batch.focus.has_focus=True
  window.12.focused=True


> There is a "-d mouse", just tested now and it worked fine here.

Ah, my bad. I went through "-d help" and didn't see that.

Interestingly, the Alt_L trick does not work on all applications.
Firefox for example does not process anything in this state - except
for the menus, but not the menubar itself. So you can't click on
"File", but once you open File with Alt-F that menu works.


> I would try to downgrade Xorg to an older version, look at "xpra info |
> grep cursor" as you move the mouse. Maybe also look for the "focus" info.
> It is worth trying to downgrade xpra to v0.14.x to rule out a
> regression. Maybe running "xev" or a simple xterm will help figure
> things out.

I will try to downgrade Xorg to 1.17 first, but due to ABI changes I
need to downgrade all the drivers, too, which is a PITA on Arch.


Regards,
Thomas



More information about the shifter-users mailing list