mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
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)
|
||||
conf := d.outputConfig[output]
|
||||
for _, w := range conf.windows {
|
||||
w.redraw = true
|
||||
w.updateOutputs()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1633,6 +1633,7 @@ func (w *window) updateOutputs() {
|
||||
if found && scale != w.scale {
|
||||
w.scale = scale
|
||||
C.wl_surface_set_buffer_scale(w.surf, C.int32_t(w.scale))
|
||||
w.redraw = true
|
||||
}
|
||||
if !found {
|
||||
w.setStage(system.StagePaused)
|
||||
|
||||
Reference in New Issue
Block a user