4 Commits
Author SHA1 Message Date
save196 fa400c5d3d don't run axis bindings when locked 2026-09-21 01:06:08 +03:00
save196 40b0ae76ae bind axis to nothing by default 2026-09-21 00:07:22 +03:00
save196 2a567195e6 don't use the xdg window geometry offset as a position
It is the offset of the visible bounds inside the surface, which is not
zero for clients that pad their surface or place subsurfaces outside it,
so floating windows were mapped offset by their client side decorations.
2026-09-20 19:53:12 +03:00
Guido Cella cc23250527 bump version to 0.10-dev 2026-09-20 12:20:09 +02:00
4 changed files with 18 additions and 12 deletions
+1
View File
@@ -189,6 +189,7 @@ client_get_geometry(Client *c, struct wlr_box *geom)
} }
#endif #endif
*geom = c->surface.xdg->geometry; *geom = c->surface.xdg->geometry;
geom->x = geom->y = 0;
} }
static inline Client * static inline Client *
+4 -1
View File
@@ -172,6 +172,9 @@ static const Button buttons[] = {
}; };
static const Axis axes[] = { static const Axis axes[] = {
/* example of volume control:
{ MODKEY, AxisUp, spawn, SHCMD("volume-up_EXAMPLE") }, { MODKEY, AxisUp, spawn, SHCMD("volume-up_EXAMPLE") },
{ MODKEY, AxisDown, spawn, SHCMD("volume-down_EXAMPLE") }, { MODKEY, AxisDown, spawn, SHCMD("volume-down_EXAMPLE") }, */
{ 0, 0, NULL, {0} },
/* does nothing, but the array cannot be empty */
}; };
+1 -1
View File
@@ -1,4 +1,4 @@
_VERSION = 0.9-dev _VERSION = 0.10-dev
VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)` VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)`
PKG_CONFIG = pkg-config PKG_CONFIG = pkg-config
+2
View File
@@ -663,6 +663,7 @@ axisnotify(struct wl_listener *listener, void *data)
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat); wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
if (!locked) {
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL) if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
adir = event->delta > 0 ? AxisDown : AxisUp; adir = event->delta > 0 ? AxisDown : AxisUp;
else else
@@ -675,6 +676,7 @@ axisnotify(struct wl_listener *listener, void *data)
return; return;
} }
} }
}
/* Notify the client with pointer focus of the axis event. */ /* Notify the client with pointer focus of the axis event. */
wlr_seat_pointer_notify_axis(seat, wlr_seat_pointer_notify_axis(seat,