forked from joejulian/gio
app: [Wayland] ensure monitor scale changes propagate to active windows
This broke during an earlier refactor. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-1
@@ -613,7 +613,7 @@ func gio_onOutputDone(data unsafe.Pointer, output *C.struct_wl_output) {
|
|||||||
d := callbackLoad(data).(*wlDisplay)
|
d := callbackLoad(data).(*wlDisplay)
|
||||||
conf := d.outputConfig[output]
|
conf := d.outputConfig[output]
|
||||||
for _, w := range conf.windows {
|
for _, w := range conf.windows {
|
||||||
w.redraw = true
|
w.updateOutputs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1633,6 +1633,7 @@ func (w *window) updateOutputs() {
|
|||||||
if found && scale != w.scale {
|
if found && scale != w.scale {
|
||||||
w.scale = scale
|
w.scale = scale
|
||||||
C.wl_surface_set_buffer_scale(w.surf, C.int32_t(w.scale))
|
C.wl_surface_set_buffer_scale(w.surf, C.int32_t(w.scale))
|
||||||
|
w.redraw = true
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
w.setStage(system.StagePaused)
|
w.setStage(system.StagePaused)
|
||||||
|
|||||||
Reference in New Issue
Block a user