mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
e228e12a39
3 changed files with 17 additions and 5 deletions
|
|
@ -224,7 +224,7 @@ static struct cmd_results *resize_adjust_floating(uint32_t axis,
|
|||
} else if (axis == WLR_EDGE_LEFT) {
|
||||
grow_x = -grow_width;
|
||||
}
|
||||
if (grow_x == 0 && grow_y == 0) {
|
||||
if (grow_width == 0 && grow_height == 0) {
|
||||
return cmd_results_new(CMD_INVALID, "Cannot resize any further");
|
||||
}
|
||||
con->x += grow_x;
|
||||
|
|
|
|||
|
|
@ -364,11 +364,20 @@ static void transaction_progress_queue(void) {
|
|||
// If there's a bunch of consecutive transactions which all apply to the
|
||||
// same views, skip all except the last one.
|
||||
while (server.transactions->length >= 2) {
|
||||
struct sway_transaction *a = server.transactions->items[0];
|
||||
struct sway_transaction *b = server.transactions->items[1];
|
||||
if (transaction_same_nodes(a, b)) {
|
||||
struct sway_transaction *txn = server.transactions->items[0];
|
||||
struct sway_transaction *dup = NULL;
|
||||
|
||||
for (int i = 1; i < server.transactions->length; i++) {
|
||||
struct sway_transaction *maybe_dup = server.transactions->items[i];
|
||||
if (transaction_same_nodes(txn, maybe_dup)) {
|
||||
dup = maybe_dup;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (dup) {
|
||||
list_del(server.transactions, 0);
|
||||
transaction_destroy(a);
|
||||
transaction_destroy(txn);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,9 @@ static void handle_unref(struct sway_seat *seat, struct sway_container *con) {
|
|||
if (e->con == con) {
|
||||
seatop_begin_default(seat);
|
||||
}
|
||||
if (e->h_sib == con || e->v_sib == con) {
|
||||
seatop_begin_default(seat);
|
||||
}
|
||||
}
|
||||
|
||||
static const struct sway_seatop_impl seatop_impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue