mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-07-26 09:41:59 -07:00
patches: rebase
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -179,8 +179,58 @@ void notify_motion(XEvent *e) {
|
@@ -367,9 +367,58 @@ void win_fs() {
|
||||||
attr.y + (mouse.button == 1 ? yd : 0),
|
|
||||||
attr.width + (mouse.button == 3 ? xd : 0),
|
} else
|
||||||
attr.height + (mouse.button == 3 ? yd : 0));
|
XMoveResizeWindow(d, cur, c->a.x, c->a.y, c->a.width, c->a.height);
|
||||||
+
|
+
|
||||||
+ if (mouse.button == 3)
|
+ win_round_corners(cur, c->f ? 0 : ROUND_CORNERS);
|
||||||
+ 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 initializes all key bindings defined in 'config.h'.
|
This function simply moves the focused window to
|
||||||
Simple stuff, nothing fancy or different from other window
|
the desired desktop.
|
||||||
@@ -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});
|
||||||
|
Reference in New Issue
Block a user