mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Wayland] fix reference to most recent metric
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-1
@@ -1620,7 +1620,8 @@ func (w *window) systemGesture() (*C.struct_wl_cursor, C.uint32_t) {
|
|||||||
if w.config.Mode != Windowed || w.config.Decorated {
|
if w.config.Mode != Windowed || w.config.Decorated {
|
||||||
return nil, 0
|
return nil, 0
|
||||||
}
|
}
|
||||||
border := w.w.w.metric.Dp(3)
|
_, cfg := w.getConfig()
|
||||||
|
border := cfg.Dp(3)
|
||||||
x, y, size := int(w.lastPos.X), int(w.lastPos.Y), w.config.Size
|
x, y, size := int(w.lastPos.X), int(w.lastPos.Y), w.config.Size
|
||||||
north := y <= border
|
north := y <= border
|
||||||
south := y >= size.Y-border
|
south := y >= size.Y-border
|
||||||
|
|||||||
Reference in New Issue
Block a user