summarylogtreecommitdiffstats
path: root/rounded-border.patch
blob: 40b219087b465c6d2d51e0ec37ca8aae8316d50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff '--color=auto' --unified --recursive --text i3.orig/src/x.c i3.new/src/x.c
--- i3.orig/src/x.c	2023-04-21 17:48:10.480025097 +0200
+++ i3.new/src/x.c	2023-04-21 17:48:44.040025554 +0200
@@ -902,6 +902,22 @@
         FREE(state->name);
     }
 
+    if (con != NULL && con->window != NULL) {
+        Rect r = {
+            con->current_border_width, /* left */
+            con->current_border_width, /* right */
+            con->current_border_width, /* top */
+            con->current_border_width  /* bottom */
+        };
+        xcb_change_property(
+            conn,
+            XCB_PROP_MODE_REPLACE,
+            con->window->id,
+            A__NET_FRAME_EXTENTS,
+            XCB_ATOM_CARDINAL, 32, 4,
+            &r);
+    }
+
     if (con->window == NULL && (con->layout == L_STACKED || con->layout == L_TABBED)) {
         /* Calculate the height of all window decorations which will be drawn on to
          * this frame. */