mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-02-04 02:03:06 +00:00
Compare commits
3 Commits
17f0bd9db4
...
de70628d0a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de70628d0a | ||
|
|
e9916e4319 | ||
|
|
7f261214e1 |
@ -15,7 +15,7 @@ The "Monitor area" refers to the space enclosed by the green rectangle, while th
|
||||
|
||||
### Download
|
||||
- [git branch](https://codeberg.org/wochap/dwl/src/branch/v0.5/customfloat)
|
||||
- [2025-08-16[(https://codeberg.org/dwl/dwl-patches/raw/commit/f7f47b6d99cf1bcf35f614ce7beed7f283967f57/patches/customfloat/customfloat.patch)
|
||||
- [2025-08-16](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/customfloat/customfloat.patch)
|
||||
- [2024-07-09](https://codeberg.org/dwl/dwl-patches/raw/commit/13d96b51b54500dd24544cf3a73c61b7a1414bc6/patches/customfloat/customfloat.patch)
|
||||
- [2024-04-11](https://codeberg.org/dwl/dwl-patches/raw/commit/98cba933c9f4099202e54f39acbf17e05bde828a/customfloat/customfloat.patch)
|
||||
- [v0.5](https://codeberg.org/dwl/dwl-patches/raw/commit/bf098459219e7a473d8edb4c0435aeb6a4b82e38/customfloat/customfloat.patch)
|
||||
|
||||
14
patches/lock-size/README.md
Normal file
14
patches/lock-size/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Description
|
||||
Prevent resizing of fixed-size xdg-toplevel windows.
|
||||
|
||||
> NOTE:
|
||||
The patch works on (main 2025-12-20) and v0.7
|
||||
|
||||
# Download
|
||||
- [git branch](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/lock-size/lock-size.patch)
|
||||
- [main 2025-12-20](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/lock-size/lock-size.patch)
|
||||
- [v0.7](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/lock-size/lock-size.patch)
|
||||
|
||||
# Authors
|
||||
- [pi66](https://pi66.xyz)
|
||||
|
||||
29
patches/lock-size/lock-size.patch
Normal file
29
patches/lock-size/lock-size.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From a622b4740ff533f0fc46923990d421bf7c0892d8 Mon Sep 17 00:00:00 2001
|
||||
From: pi66 <pixel2176@proton.me>
|
||||
Date: Sat, 20 Dec 2025 20:57:46 +0100
|
||||
Subject: [PATCH] fix: prevent resizing fixed-size xdg-toplevel clients
|
||||
|
||||
---
|
||||
dwl.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index 12f441e..3a74a34 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -2210,6 +2210,12 @@ resize(Client *c, struct wlr_box geo, int interact)
|
||||
if (!c->mon || !client_surface(c)->mapped)
|
||||
return;
|
||||
|
||||
+ if (c->surface.xdg->toplevel->current.min_width==c->surface.xdg->toplevel->current.max_width)
|
||||
+ geo.width = c->geom.width;
|
||||
+
|
||||
+ if (c->surface.xdg->toplevel->current.min_height==c->surface.xdg->toplevel->current.max_height)
|
||||
+ geo.height = c->geom.height;
|
||||
+
|
||||
bbox = interact ? &sgeom : &c->mon->w;
|
||||
|
||||
client_set_bounds(c, geo.width, geo.height);
|
||||
--
|
||||
2.51.2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user