sowm: rounded corners patch, rebase

This commit is contained in:
Dylan Araps
2019-10-14 11:01:54 +03:00
parent 2b62b6c855
commit 54405fafa1

View File

@@ -22,7 +22,7 @@ index 864c9a7..1525894 100644
const char* menu[] = {"dmenu_run", 0};
const char* term[] = {"st", 0};
diff --git a/sowm.c b/sowm.c
index 1618a65..29794cb 100644
index b927fda..2775eb7 100644
--- a/sowm.c
+++ b/sowm.c
@@ -5,6 +5,7 @@
@@ -41,7 +41,7 @@ index 1618a65..29794cb 100644
static void win_to_ws(const Arg arg);
static void ws_go(const Arg arg);
static void ws_save(int i);
@@ -87,6 +89,8 @@ void notify_destroy(XEvent *e) {
@@ -93,6 +95,8 @@ void notify_destroy(XEvent *e) {
}
void notify_enter(XEvent *e) {
@@ -50,7 +50,7 @@ index 1618a65..29794cb 100644
if (e->xcrossing.window != root) FOC(e->xcrossing.window)
}
@@ -104,6 +108,8 @@ void notify_motion(XEvent *e) {
@@ -110,6 +114,8 @@ void notify_motion(XEvent *e) {
attr.y + (mouse.button==1 ? yd : 0),
attr.width + (mouse.button==3 ? xd : 0),
attr.height + (mouse.button==3 ? yd : 0));
@@ -59,7 +59,7 @@ index 1618a65..29794cb 100644
}
for WIN if (c->w == mouse.subwindow) c->f = 0;
@@ -219,7 +225,45 @@ void win_fs(Window w) {
@@ -220,7 +226,45 @@ void win_fs(Window w) {
} else
XMoveResizeWindow(d, w, c->a.x, c->a.y, c->a.width, c->a.height);