Comments (1)
to clarify, emacs doesn't handle scale changed events at all, except by chance if it's forced to redraw the whole window. winit on my platform incorrectly reports 1.0 as the scale factor when the window loads, but then returns 2.0 a tad later. Internally we get the scale factor from a variety of sources, sometimes from the window, sometimes from the primary_display (?!). These clearly contradict, so things jump around on the screen until the scale is correct.
Tao gets the scale right to start with, so this bug is masked.
Separately, the scaling code is backwards. I think we should be handing logical dimensions to emacs and only using the physical dimensions when rendering. That way we wouldn't have to multiply by the scaling factor to get mouse events in the right place. Intuitively this should give emacs a smaller screen and save it some work.
from emacs-ng.
Related Issues (20)
- Emacs Crash "Not invalie Emacs_Cursor" HOT 17
- `browse-url winit display` ? HOT 1
- Blank window with glutin HOT 16
- Browser-based frontend to emacs possible now? HOT 1
- Winit/WR doesnt works well on hyprland HOT 9
- Use Webrender GPU rendering with PGTK HOT 11
- Add Webrender support for NS darwin build
- Pure Rust font stack for wr_glyph_rasterizer HOT 12
- Missing window decorations (menu/toolbar etc.)
- WR/PGTK handle dpi/scale factor HOT 4
- `emacs -nw` calls window code
- WR/PGTK childframes are white HOT 4
- Segfault/stack smashing with tao/winit HOT 13
- WR/Winit handle [`ScaleFactorChanged`]
- Keyboard input under high load HOT 7
- Broken nix build HOT 19
- Build error Arch Linux - also the same "workaround". HOT 6
- Building with docker results cargo: command not found error HOT 2
- Nix CI on macOS is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-ng.