patches: rebase

This commit is contained in:
Dylan Araps
2019-10-16 08:29:58 +03:00
parent f19fd045a8
commit 2928148534

View File

@@ -50,13 +50,13 @@ index b9e8867..4c0b3fa 100644
for WIN if (c->w == mouse.subwindow) c->f = 0; for WIN if (c->w == mouse.subwindow) c->f = 0;
} }
} }
@@ -367,9 +367,58 @@ void win_fs() { @@ -179,8 +179,58 @@ void notify_motion(XEvent *e) {
attr.y + (mouse.button == 1 ? yd : 0),
} else attr.width + (mouse.button == 3 ? xd : 0),
XMoveResizeWindow(d, cur, c->a.x, c->a.y, c->a.width, c->a.height); attr.height + (mouse.button == 3 ? yd : 0));
+ +
+ win_round_corners(cur, c->f ? 0 : ROUND_CORNERS); + if (mouse.button == 3)
} + win_round_corners(mouse.subwindow, ROUND_CORNERS);
} }
+/* +/*
@@ -74,7 +74,7 @@ index b9e8867..4c0b3fa 100644
+ XWindowAttributes attr2; + XWindowAttributes attr2;
+ XGetWindowAttributes(d, w, &attr2); + XGetWindowAttributes(d, w, &attr2);
+ +
+ int dia = 2 * rad; + int dia = 2 * rad;
+ int ww = attr2.width; + int ww = attr2.width;
+ int wh = attr2.height; + int wh = attr2.height;
+ +
@@ -107,8 +107,8 @@ index b9e8867..4c0b3fa 100644
+ } + }
+ +
/* /*
This function simply moves the focused window to This function initializes all key bindings defined in 'config.h'.
the desired desktop. Simple stuff, nothing fancy or different from other window
@@ -511,6 +511,7 @@ void map_request(XEvent *e) { @@ -511,6 +511,7 @@ void map_request(XEvent *e) {
win_center((Arg){.i = w}); win_center((Arg){.i = w});