mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
feat(wm): use device id for monitor index pref
This commit begins to build on some of the knowledge shared by EBNull in allowing users to specify monitor index preferences using physical device identifiers. This does not presently go all the way to EDIDs, but the display model and what I believe is a port identifier on the display adapter(s) can be used to uniquely identify a display in most use cases. However, I believe I may have unfortunately run into a bug in either windows-rs or Rust itself, as when the code calling EnumDisplayDevices is called, it always fails when running a release build, and always succeeds when running a debug build. This needs to be investigated further. re #612
This commit is contained in:
@@ -84,6 +84,7 @@ pub enum SocketMessage {
|
||||
FlipLayout(Axis),
|
||||
// Monitor and Workspace Commands
|
||||
MonitorIndexPreference(usize, i32, i32, i32, i32),
|
||||
DisplayIndexPreference(usize, String),
|
||||
EnsureWorkspaces(usize, usize),
|
||||
EnsureNamedWorkspaces(usize, Vec<String>),
|
||||
NewWorkspace,
|
||||
|
||||
Reference in New Issue
Block a user