Comments (4)
I think we should be able to add a set_modes(&self, &[Mode])
method directly, replacing the previous contents list.
Though, what is a realistic explanation for an output changing its supported modes ?
We should take into account the fact that the wayland protocol does not support advertising that a mode is no longer supported, so a radical change of supported modes is probably better reflected a the suppression of the output and the creation of a new one...
from smithay.
There are two cases for this:
- Nested backends that may use almost every value as a
Mode
. - Mirroring outputs, which should only expose modes supported by both monitors.
For case one this would mean re-creating wl_output for every change in size of the compositor window, no idea what is the best practice here.
For the second case it might be better to just re-create the output, but technically the output being rendered to is still the same just with some new constraints given by the added mirror. Although one could argue, that the combination of two outputs results in a new output. I really have no idea what the best practice is here and how weston or gnome for example do handle this.
from smithay.
Not sure what would be the best choice...
For context, Weston's drawing area is not resized when started as an X client and its window size changes. Causing black borders or part of the wayland screen being cut.
from smithay.
I will try to figure out what gnome does on multi-monitor setups. I find weston's "solution" to the problem rather ugly. I guess we will end up just recreating the output in either case.
from smithay.
Related Issues (20)
- With multiple subsurface, only last created (topmost) subsurface and parent get pointer input HOT 1
- Missing key release events on winit backend results in permanently pressed modifiers
- wvkbd crashes when touching a key HOT 9
- Possibly wrong window geometry size with wp-viewporter HOT 4
- aa8d87a214 broke pointer input in foot HOT 1
- Stuck in listener.accept
- Add blurred Element support to `OutputDamageTracker`
- Initial commit of an XdgToplevel with a buffer already attached doesn't result in an error
- `DrmDevice::new` with disable_connectors = true causes vrr_capable property to get stuck at 0 HOT 3
- `prop_mapping` cache in `AtomicDrmDevice` doesn't handle connector hotplug
- Cursor and overlay elements overwrite primary plane in `RenderFrameResult::blit_frame_result` HOT 5
- Pasting images from wayland -> x11 truncates/corrupts the image HOT 1
- Reduce cloning around opaque region vectors
- `wlr_layer`'s `pre_commit_hook` can post an error, disconnecting the client, leading to a panic later on in the `commit` handling HOT 5
- Send an event, if Xwayland exits unexpectedly HOT 1
- Crop element causes invalid rendering for buffer transforms 1, 3, 5, 7
- Build error on s390x: src/wayland/shm/pool.rs:311:15 ..mem::zeroed() field `__glibc_reserved0` is private HOT 2
- Niri fails to init display in QEMU, smithay error message HOT 7
- app_id for nested compositors HOT 4
- Pointer surface focus not checked before button press
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 smithay.