Coder Social home page Coder Social logo

Comments (9)

vks avatar vks commented on May 18, 2024 1

This does fix the issue for me!

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

I'll see if I can get a Linux VM going to test this. I'm writing on Windows, which tends to either work or not work spectacularly! I mostly do server-side Linux work, so it may take me a bit to get caught up on this one.
Thanks for letting me know!

from bracket-lib.

vks avatar vks commented on May 18, 2024

I also have this problem on Linux (without Wayland). It seems to be related to window decorations. They appear later than the rest of the window, and the jumps correspond to the size of the window decorations.

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

Still trying to get a VM up and running (I'm really low on disk space!), but I suspect that the issue is in rltk.rs, specifically the lines:

WindowEvent::Resized(logical_size) => {
                    let dpi_factor = wc.window().hidpi_factor();
                    wc.resize(logical_size.to_physical(dpi_factor));
                }

So every time the console receives an update command, it tries to adjust the physical size to handle the logical size (this was from some example code). Commenting it out on Windows doesn't change anything (I think it's an attempt to work around Mac's odd resolution handling), but would mean that the "resize" event sent by the Linux system to handle the addition of window decorations wouldn't trigger a resize (which in turn seems to trigger another resize).

So I'll commit a version that comments this out - any chance one of you could update and give it a go for me, please? I'll keep trying on the VM...

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

I'll wait to make sure I haven't caused problems anywhere before I close it, but hopefully that'll do it.

from bracket-lib.

mgedmin avatar mgedmin commented on May 18, 2024

I'll open a separate bug for my input issues: #7.

from bracket-lib.

vks avatar vks commented on May 18, 2024

from bracket-lib.

mgedmin avatar mgedmin commented on May 18, 2024

This seems to be fixed for me with the latest rltk_rs.

from bracket-lib.

thebracket avatar thebracket commented on May 18, 2024

Appears to be fixed.

from bracket-lib.

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.