Code Monkey home page Code Monkey logo

Comments (6)

somiaj avatar somiaj commented on August 31, 2024 1

X11 key/mouse press/release events can really only be used by a single application, if fvwm doesn't have a binding setup, it passes the event directly to the application, but if it does have a binding then fvwm intercepts it. I am not quite sure how modifiers are dealt with here, but once fvwm grabs the event it won't be the same to firefox.

As a work around, would say making your custom binding only work on mouse 3, or something that doesn't get in the way of normal operations. You could also move your binding off the window to the title bar / borders instead.

I can't seem to reproduce this on firefox-esr here, so my guess is firefox has changed something and the bug is on their end. I would first see if you can downgrade firefox to an older version, try to find when this changed happend, the easiest way is install firefox-esr, and see if the problem is still there.

I can't think of any of the key/mouse binding code in fvwm3 changed recently. Note firefox is often doing non standard things, there is always something they are breaking.

from fvwm3.

somiaj avatar somiaj commented on August 31, 2024 1

I have done some looking around, seems there have been various users with issues with menus and some smaller wms. Here are some suggested things to toggle, go to about:config and try to set widget.gtk.ignore-bogus-leave-notify to 1 (it defaults as 2), and if that doesn't work you can try to toggle widget.gtk.grab-pointer to 1 as well.

Anyways here is some info here: https://bugzilla.mozilla.org/show_bug.cgi?id=1819206

And it appears this particular bug is already know, this mentions fvwm2/3 and the exact issue you ran into: https://bugzilla.mozilla.org/show_bug.cgi?id=1805939#c32, I still am unsure if it is firefox or fvwm to blame, I think firefox, but they may think that everything needs to update to their standards.

From that comment it sounds like firefox is grabbing the events with AnyModifiers which it cannot since fvwm has already claimed the event for modifier 4 via your key binding. You may want to move this over to firefox, as it seems like their bug to me.

from fvwm3.

somiaj avatar somiaj commented on August 31, 2024

If you tried a modified other than '4' does it work, like maybe try ctrl or meta? What does your xmodmap say?

from fvwm3.

rkoe avatar rkoe commented on August 31, 2024
  • Using other modifiers unfortunately does not help -- same behavior with "C", "S" or "M" instead of "4".
  • Using a different function for the mouse-binding also doesn't change the behavior.
  • Restricting to a single mouse-button (instead of 0=any) makes the other buttons work in Firefox-menus again, except the selected mouse-button.
  • e.g. Mouse 1 W C Stick causes the same behavior (except that mouse-button 2 can now be used in the Firefox-menu)
  • xmodmap:
    xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
    
    shift       Shift_L (0x32),  Shift_R (0x3e)
    lock      
    control     Control_L (0x25),  Control_R (0x69)
    mod1        Alt_L (0x40),  Alt_L (0xcc),  Meta_L (0xcd)
    mod2        Num_Lock (0x4d)
    mod3        ISO_Level5_Shift (0xcb)
    mod4        Super_L (0x85),  BadKey (0x86),  Super_L (0xce),  Hyper_L (0xcf)
    mod5        ISO_Level3_Shift (0x5c)
    

from fvwm3.

ThomasAdam avatar ThomasAdam commented on August 31, 2024

For now, I'm afraid this isn't something I feel fvwm is going to be able to "workaround", and the fix ultimately relies on this being done in Firefox.

I hope this is something they're prepared to do.

from fvwm3.

rkoe avatar rkoe commented on August 31, 2024

Thanks a lot!

  • With Firefox-setting widget.gtk.ignore-bogus-leave-notify 1 it works again! :)
  • I had previously submitted a webcompat-issue to Firefox, but it got closed. But with your additional information, I might open a Firefox-issue again.

from fvwm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.