Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra FocusIn/FocusOut events when trying to drag the mouse inside FreeRDP window #628

Open
Zirias opened this issue Oct 29, 2021 · 0 comments
Labels
relates:ewmh Issues is in EWMH/ICCCM2 handling code reproducible:fvwm2 Issue is also present in fvwm2 type:bug Something's broken!

Comments

@Zirias
Copy link
Contributor

Zirias commented Oct 29, 2021

Upfront Information

  • Fvwm3 version (run: fvwm3 --version)
fvwm3 1.0.4 (released)
with support for:  ReadLine, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS
  • Linux distribution or BSD name/version
    FreeBSD 13.0-RELEASE-p4

  • Platform (run: uname -sp)
    FreeBSD amd64

Expected Behaviour

Dragging the mouse in the client area of FreeRDP should not cause focus events.

Actual Behaviour

Only in the presence of bindings to mouse button 1 on a window (context 'W'), there are FocusOut/FocusIn events when trying to drag the mouse inside FreeRDP. The events look like this in xev:

FocusOut event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyUngrab, detail NotifyNonlinear

FocusIn event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyUngrab, detail NotifyNonlinear

FocusOut event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyGrab, detail NotifyNonlinear

FocusIn event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyGrab, detail NotifyNonlinear

FocusOut event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyUngrab, detail NotifyNonlinear

FocusIn event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyUngrab, detail NotifyNonlinear

FocusOut event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyGrab, detail NotifyNonlinear

FocusIn event, serial 18, synthetic NO, window 0x4200001,
    mode NotifyGrab, detail NotifyNonlinear

When I remove these bindings from my fvwm config:

Mouse 1 W M move-and-raise-or-raiselower
Mouse 1 W CM Module FvwmIdent

everything works as expected (xev -id <freerdp-window-id> -event focus doesn't see any events)

Enabling logging

No log messages are created when reproducing the behavior:

[1635504547.841970]  log opened (because of SIGUSR2)

Steps to Reproduce

  • Add a binding to mouse button 1 with context 'W' to your config, e.g. Mouse 1 W CM Module FvwmIdent
  • Log into a remote machine with FreeRDP
  • Try to drag a window on the remote machine
  • To see the extra events, use xev -id <freerdp-window-id> -event focus
  • This also happens on fvwm2

Extra Information

Related issue on FreeRDP: FreeRDP/FreeRDP#6948

@Zirias Zirias added the type:bug Something's broken! label Oct 29, 2021
@ThomasAdam ThomasAdam reopened this Oct 29, 2021
@ThomasAdam ThomasAdam added the reproducible:fvwm2 Issue is also present in fvwm2 label Oct 30, 2021
@ThomasAdam ThomasAdam added the relates:ewmh Issues is in EWMH/ICCCM2 handling code label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates:ewmh Issues is in EWMH/ICCCM2 handling code reproducible:fvwm2 Issue is also present in fvwm2 type:bug Something's broken!
Projects
None yet
Development

No branches or pull requests

2 participants