Don't mix up x and y arranging display outputs
Fixes issue where default layout had displays positioned vertically with gaps.
This commit is contained in:
parent
38ec635750
commit
2d6efb2db2
1 changed files with 2 additions and 2 deletions
|
|
@ -422,7 +422,7 @@ impl State {
|
||||||
let mut wl_outputs = Vec::new();
|
let mut wl_outputs = Vec::new();
|
||||||
let mut w = self.common.shell.global_space().size.w;
|
let mut w = self.common.shell.global_space().size.w;
|
||||||
for (crtc, conn) in outputs {
|
for (crtc, conn) in outputs {
|
||||||
match device.setup_surface(crtc, conn, (0, w)) {
|
match device.setup_surface(crtc, conn, (w, 0)) {
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
w += output
|
w += output
|
||||||
.user_data()
|
.user_data()
|
||||||
|
|
@ -487,7 +487,7 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (crtc, conn) in changes.added {
|
for (crtc, conn) in changes.added {
|
||||||
match device.setup_surface(crtc, conn, (0, w)) {
|
match device.setup_surface(crtc, conn, (w, 0)) {
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
w += output
|
w += output
|
||||||
.user_data()
|
.user_data()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue