mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-09-20 22:32:49 +00:00
Compare commits
9
Commits
e451862544
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa400c5d3d | ||
|
|
40b0ae76ae | ||
|
|
2a567195e6 | ||
|
|
cc23250527 | ||
|
|
98bea2c27f | ||
|
|
49837e985e | ||
|
|
d16036e690 | ||
|
|
45054a34a4 | ||
|
|
669b26d0a9 |
+90
-7
@@ -1,12 +1,98 @@
|
||||
# Changelog
|
||||
|
||||
* [Unreleased](#unreleased)
|
||||
* [0.9](#0.9)
|
||||
* [0.8](#0.8)
|
||||
* [0.7](#0.7)
|
||||
* [0.6](#0.6)
|
||||
* [0.5](#0.5)
|
||||
|
||||
|
||||
## Unreleased
|
||||
## 0.9
|
||||
|
||||
### Added
|
||||
|
||||
* Add axis mouse bindings ([#652][652])
|
||||
* Add support for the ext-data-control protocol ([#1184][1184])
|
||||
* Add support for the ext-foreign-toplevel-list protocol ([#1223][1223])
|
||||
* Add support for the ext-image-copy-capture and ext-image-capture-source protocols (screensharing) ([#1218][1218], [#1223][1223], [#1224][1224])
|
||||
* Add support for version 4 of the layer shell protocol (on-demand keyboard interactivity) ([#674][674])
|
||||
* Add support for wlr-text-input and wlr-input-method protocols (IME) ([#1219][1219])
|
||||
* Snap windows to edges when moving or resizing them ([#608][608])
|
||||
|
||||
[1184]: https://codeberg.org/dwl/dwl/pulls/1184
|
||||
[1218]: https://codeberg.org/dwl/dwl/pulls/1218
|
||||
[1219]: https://codeberg.org/dwl/dwl/pulls/1219
|
||||
[1223]: https://codeberg.org/dwl/dwl/pulls/1223
|
||||
[1224]: https://codeberg.org/dwl/dwl/pulls/1224
|
||||
[608]: https://codeberg.org/dwl/dwl/pulls/608
|
||||
[652]: https://codeberg.org/dwl/dwl/pulls/652
|
||||
[674]: https://codeberg.org/dwl/dwl/pulls/674
|
||||
|
||||
|
||||
### Changed
|
||||
|
||||
* Update wlroots to version 0.20 ([#1218][1218])
|
||||
* Use modifier-independent key symbols in config.h keybindings ([#1075][1075])
|
||||
|
||||
[1075]: https://codeberg.org/dwl/dwl/pulls/1075
|
||||
[1218]: https://codeberg.org/dwl/dwl/pulls/1218
|
||||
|
||||
|
||||
### Fixed
|
||||
|
||||
* Apply a minimum window size of 1x1 ([#1231][1231])
|
||||
* Close Xwayland submenus when changing tag or focus ([#1233][1233])
|
||||
* Don't make Firefox draw rounded corners when it is opened ([#d1ebf3c][d1ebf3c])
|
||||
* Don't send key release events to the wrong client ([#1108][1108])
|
||||
* Fix a crash when closing mpv ([#1220][1220])
|
||||
* Fix a crash when destroying an idle-inhibitor ([#1214][1214])
|
||||
* Fix choppy resizing on newer wlroots ([#1280][1280])
|
||||
* Fix the position of certain sub-menus in Xwayland applications ([#1232][1232])
|
||||
* Keep the focused border color on the regular client when opening a layer shell surface like wmenu ([#6013835][6013835])
|
||||
* Let keybindings focus and tag monitors above and below ([#5fd19fe][5fd19fe])
|
||||
* Preserve asleep disabled outputs in output config ([#1198][1198])
|
||||
* Respect size hints ([#4de32d2][4de32d2])
|
||||
* Set seat capabilities for virtual keyboards and pointers when there is no other input device ([#99cdc9a][99cdc9a])
|
||||
* Show popups in fullscreen Xwayland applications ([#1fe1b4e][1fe1b4e])
|
||||
* Show the correct cursor after moving and resizing ([#8ad2c92][8ad2c92])
|
||||
|
||||
[1108]: https://codeberg.org/dwl/dwl/pulls/1108
|
||||
[1198]: https://codeberg.org/dwl/dwl/pulls/1198
|
||||
[1214]: https://codeberg.org/dwl/dwl/pulls/1214
|
||||
[1220]: https://codeberg.org/dwl/dwl/pulls/1220
|
||||
[1231]: https://codeberg.org/dwl/dwl/pulls/1231
|
||||
[1232]: https://codeberg.org/dwl/dwl/pulls/1232
|
||||
[1233]: https://codeberg.org/dwl/dwl/pulls/1233
|
||||
[1280]: https://codeberg.org/dwl/dwl/pulls/1280
|
||||
[1fe1b4e]: https://codeberg.org/dwl/dwl/commit/1fe1b4e
|
||||
[4de32d2]: https://codeberg.org/dwl/dwl/commit/4de32d2
|
||||
[5fd19fe]: https://codeberg.org/dwl/dwl/commit/5fd19fe
|
||||
[6013835]: https://codeberg.org/dwl/dwl/commit/6013835
|
||||
[8ad2c92]: https://codeberg.org/dwl/dwl/commit/8ad2c92
|
||||
[99cdc9a]: https://codeberg.org/dwl/dwl/commit/99cdc9a
|
||||
[d1ebf3c]: https://codeberg.org/dwl/dwl/commit/d1ebf3c
|
||||
|
||||
|
||||
### Contributors
|
||||
|
||||
|
||||
* A Frederick Christensen
|
||||
* Alex Denes
|
||||
* Andrea Chiavazza
|
||||
* Diego Viola
|
||||
* Guido Cella
|
||||
* Leonardo Hernández Hernández
|
||||
* Peter Hofmann
|
||||
* Siva Mahadevan
|
||||
* julmajustus
|
||||
* klim
|
||||
* save196
|
||||
* sewn
|
||||
* thanatos
|
||||
|
||||
|
||||
## 0.8
|
||||
|
||||
### Added
|
||||
|
||||
* Support for the linux-drm-syncobj-v1 protocol ([wlroots!4715][wlroots!4715], [#685][685])
|
||||
@@ -17,15 +103,12 @@
|
||||
[646]: https://codeberg.org/dwl/dwl/pulls/646
|
||||
|
||||
|
||||
### Changed
|
||||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Crash when a client is created while all outputs are disabled.
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
Most changes in this release are not listed. See the commits for details.
|
||||
|
||||
|
||||
## 0.7
|
||||
|
||||
@@ -189,6 +189,7 @@ client_get_geometry(Client *c, struct wlr_box *geom)
|
||||
}
|
||||
#endif
|
||||
*geom = c->surface.xdg->geometry;
|
||||
geom->x = geom->y = 0;
|
||||
}
|
||||
|
||||
static inline Client *
|
||||
|
||||
+4
-1
@@ -172,6 +172,9 @@ static const Button buttons[] = {
|
||||
};
|
||||
|
||||
static const Axis axes[] = {
|
||||
/* example of volume control:
|
||||
{ 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,4 +1,4 @@
|
||||
_VERSION = 0.9-dev
|
||||
_VERSION = 0.10-dev
|
||||
VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)`
|
||||
|
||||
PKG_CONFIG = pkg-config
|
||||
|
||||
@@ -377,6 +377,7 @@ static void zoom(const Arg *arg);
|
||||
static pid_t child_pid = -1;
|
||||
static int locked;
|
||||
static void *exclusive_focus;
|
||||
static Client *focused_client;
|
||||
static struct wl_display *dpy;
|
||||
static struct wl_event_loop *event_loop;
|
||||
static struct wlr_backend *backend;
|
||||
@@ -487,6 +488,10 @@ static struct wlr_xwayland *xwayland;
|
||||
void
|
||||
applybounds(Client *c, struct wlr_box *bbox)
|
||||
{
|
||||
/* set minimum client size to 1 */
|
||||
c->geom.width = MAX(1 + 2 * (int)c->bw, c->geom.width);
|
||||
c->geom.height = MAX(1 + 2 * (int)c->bw, c->geom.height);
|
||||
|
||||
if (!c->isfullscreen) {
|
||||
struct wlr_box min = {0}, max = {0};
|
||||
client_get_size_hints(c, &max, &min);
|
||||
@@ -658,16 +663,18 @@ axisnotify(struct wl_listener *listener, void *data)
|
||||
|
||||
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
||||
|
||||
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
||||
adir = event->delta > 0 ? AxisDown : AxisUp;
|
||||
else
|
||||
adir = event->delta > 0 ? AxisRight : AxisLeft;
|
||||
keyboard = wlr_seat_get_keyboard(seat);
|
||||
mods = keyboard ? wlr_keyboard_get_modifiers(keyboard) : 0;
|
||||
for (a = axes; a < END(axes); a++) {
|
||||
if (CLEANMASK(mods) == CLEANMASK(a->mod) && adir == a->dir && a->func) {
|
||||
a->func(&a->arg);
|
||||
return;
|
||||
if (!locked) {
|
||||
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
||||
adir = event->delta > 0 ? AxisDown : AxisUp;
|
||||
else
|
||||
adir = event->delta > 0 ? AxisRight : AxisLeft;
|
||||
keyboard = wlr_seat_get_keyboard(seat);
|
||||
mods = keyboard ? wlr_keyboard_get_modifiers(keyboard) : 0;
|
||||
for (a = axes; a < END(axes); a++) {
|
||||
if (CLEANMASK(mods) == CLEANMASK(a->mod) && adir == a->dir && a->func) {
|
||||
a->func(&a->arg);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1523,6 +1530,9 @@ focusclient(Client *c, int lift)
|
||||
wlr_xdg_popup_destroy(popup);
|
||||
}
|
||||
|
||||
if (old_c && old_c == exclusive_focus && client_wants_focus(old_c))
|
||||
exclusive_focus = NULL;
|
||||
|
||||
/* Put the new client atop the focus stack and select its monitor */
|
||||
if (c && !client_is_unmanaged(c)) {
|
||||
wl_list_remove(&c->flink);
|
||||
@@ -1536,24 +1546,23 @@ focusclient(Client *c, int lift)
|
||||
client_set_border_color(c, focuscolor);
|
||||
}
|
||||
|
||||
/* Deactivate old client if focus is changing */
|
||||
if (old && (!c || client_surface(c) != old)) {
|
||||
/* If an overlay is focused, don't focus or activate the client,
|
||||
* but only update its position in fstack to render its border with focuscolor
|
||||
* and focus it after the overlay is closed. */
|
||||
if (old_client_type == LayerShell && wlr_scene_node_coords(
|
||||
&old_l->scene->node, &unused_lx, &unused_ly)
|
||||
&& old_l->layer_surface->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP
|
||||
&& old_l->layer_surface->current.keyboard_interactive == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE) {
|
||||
return;
|
||||
} else if (old_c && old_c == exclusive_focus && client_wants_focus(old_c)) {
|
||||
return;
|
||||
} else if (old_c && !client_is_unmanaged(old_c)) {
|
||||
if (c && !client_is_unmanaged(c))
|
||||
client_set_border_color(old_c, bordercolor);
|
||||
/* If an overlay is focused, don't focus or activate the client,
|
||||
* but only update its position in fstack to render its border with focuscolor
|
||||
* and focus it after the overlay is closed. */
|
||||
if (old && (!c || client_surface(c) != old)
|
||||
&& old_client_type == LayerShell && wlr_scene_node_coords(
|
||||
&old_l->scene->node, &unused_lx, &unused_ly)
|
||||
&& old_l->layer_surface->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP
|
||||
&& old_l->layer_surface->current.keyboard_interactive == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE)
|
||||
return;
|
||||
|
||||
client_activate_surface(old, 0);
|
||||
}
|
||||
if (focused_client && focused_client != c && !(c && client_is_unmanaged(c))) {
|
||||
struct wlr_surface *s = client_surface(focused_client);
|
||||
if (c)
|
||||
client_set_border_color(focused_client, bordercolor);
|
||||
if (s && s->mapped)
|
||||
client_activate_surface(s, 0);
|
||||
focused_client = NULL;
|
||||
}
|
||||
printstatus();
|
||||
|
||||
@@ -1574,6 +1583,9 @@ focusclient(Client *c, int lift)
|
||||
|
||||
/* Activate the new client */
|
||||
client_activate_surface(client_surface(c), 1);
|
||||
|
||||
if (!client_is_unmanaged(c))
|
||||
focused_client = c;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -2804,7 +2816,6 @@ setup(void)
|
||||
|
||||
input_method_manager = wlr_input_method_manager_v2_create(dpy);
|
||||
text_input_manager = wlr_text_input_manager_v3_create(dpy);
|
||||
input_method_relay = ecalloc(1, sizeof(*input_method_relay));
|
||||
input_method_relay = input_method_relay_create();
|
||||
|
||||
/* Make sure XWayland clients don't connect to the parent X server,
|
||||
@@ -2980,6 +2991,8 @@ unmapnotify(struct wl_listener *listener, void *data)
|
||||
cursor_mode = CurNormal;
|
||||
grabc = NULL;
|
||||
}
|
||||
if (c == focused_client)
|
||||
focused_client = NULL;
|
||||
|
||||
if (client_is_unmanaged(c)) {
|
||||
if (c == exclusive_focus) {
|
||||
|
||||
Reference in New Issue
Block a user