Giter VIP home page Giter VIP logo

Comments (6)

tig avatar tig commented on May 23, 2024 1

I do. By putting it there you are hiding another bug further up the chain.

from terminal.gui.

tig avatar tig commented on May 23, 2024

I think the bug is in the test (and whatever code it emulates in the library).

If someone calls Application.GrabMouse it is a bug if they don't call Application.UnGrabMouse.

from terminal.gui.

BDisp avatar BDisp commented on May 23, 2024

I think the bug is in the test (and whatever code it emulates in the library).

If someone calls Application.GrabMouse it is a bug if they don't call Application.UnGrabMouse.

If AutoInitShutdown was used then it will be set to null in ResetState. This problem was happening to me when I removed and disposed a view that previously called GrabMouse. By moving the mouse, the MouseGrabView associated with this view was processed.

from terminal.gui.

tig avatar tig commented on May 23, 2024

I think the bug is in the test (and whatever code it emulates in the library).
If someone calls Application.GrabMouse it is a bug if they don't call Application.UnGrabMouse.

If AutoInitShutdown was used then it will be set to null in ResetState. This problem was happening to me when I removed and disposed a view that previously called GrabMouse. By moving the mouse, the MouseGrabView associated with this view was processed.

I think you need to figure out how to make Menu correctly call Application.UnGrabMouse since it was who called Application.GrabMouse.

from terminal.gui.

BDisp avatar BDisp commented on May 23, 2024

I think you need to figure out how to make Menu correctly call Application.UnGrabMouse since it was who called Application.GrabMouse.

By chance it wasn't the Menu that initially caused me this problem but rather the scroll bar, after it was removed and disposed. During the unit tests, the Mouse also threw the error and I corrected that error. If you want me to remove the code in the Dispose method, please say so.

from terminal.gui.

BDisp avatar BDisp commented on May 23, 2024

I do. By putting it there you are hiding another bug further up the chain.

Done,

from terminal.gui.

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.