Git Product home page Git Product logo

minimal_window's Issues

Issues on X11

1- The window does no update unless maximized or resized
2- The window closes whenever any keyboard button is pressed (this is just because of the switch case)

firefox_SJ5uSBSEm7.mp4

Pixels get drawn out of bounds on Windows

Filling a screen with color and leaving 10 pixels, you can see the entire screen still gets filled until you increase that 10 to 25 or so
image

on Wayland everything works as expected
image

Win32: update window while moving

on Win32 maybe we need to handle WM_MOVE and redrawing the window inside that,
but the problem is that handling the move event (even right now with the default handler) is blocking,

so even if we redraw the window, the user code isn't executing and isn't producing new frames, so it needs more thinking

Update every frame or provide an update API

Currently the window only updated when needed by operating system, so it is only good for static results, but not animation, we could either:
1- Update the window every frame (damaging Win32 window or Wayland surface etc.)
2- Provide the update as a function for user for example minimal_window_update)

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.