Giter Site home page Giter Site logo

Comments (3)

davidben avatar davidben commented on September 21, 2024

It's conceivable this is another (!) emacs bug? At least, urxvt does not show the same problem.

from embedded-emacs.

davidben avatar davidben commented on September 21, 2024

This is an emacs bug. In Fx_create_frame, the new window is only cons'd onto Vframe_list after a few calls, but the window is attached on x_window. In between, there are a number of calls to UNBLOCK_INPUT which pump the event loop. If the XEMBED_FOCUS_IN message comes in too early (before the frame is made official), x_detect_focus_change ignores the message and we get the visual artifact.

from embedded-emacs.

davidben avatar davidben commented on September 21, 2024

More findings: the reason emacs doesn't normally have problems here is because the window is mapped after it is added to Vframe_list. This means the Focusin events won't come in until emacs is ready. But GtkSocket sends XEMBED_FOCUS_IN immediately after sending XEMBED_EMBEDDED_NOTIFY instead of waiting for the window to be mapped. This seems clearly bogus, although I think the spec is pretty vague here. Probably worth a patch to GTK3, but that's not going to help this project any.

Probably worth trying to hack around this in emacs somehow or reimplementing XEmbed in the plugin, or at least messing with the GTK version.

from embedded-emacs.

Related Issues (14)

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.