Update dwm-swallow-riodraw-6.2_full.diff

not shure with this, but it makes sense this way. And it fixes weird behavior with default-floating windows.
Also, what is the usecase for "ignorecfgreqsize"? it is not used in the code.
pull/26/head
philor1 3 years ago committed by GitHub
parent 3b9ddf205f
commit 0e76f9e86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,9 +141,6 @@ index 4465af1..c03f0a3 100644
if (ev->value_mask & CWBorderWidth)
c->bw = ev->border_width;
else if (c->isfloating || !selmon->lt[selmon->sellt]->arrange) {
+ if (c->ignorecfgreqpos && c->ignorecfgreqsize)
+ return;
+
m = c->mon;
- if (ev->value_mask & CWX) {
- c->oldx = c->x;
@ -156,7 +153,7 @@ index 4465af1..c03f0a3 100644
- if (ev->value_mask & CWWidth) {
- c->oldw = c->w;
- c->w = ev->width;
+ if (c->ignorecfgreqpos) {
+ if (!c->ignorecfgreqpos) {
+ if (ev->value_mask & CWX) {
+ c->oldx = c->x;
+ c->x = m->mx + ev->x;
@ -169,7 +166,7 @@ index 4465af1..c03f0a3 100644
- if (ev->value_mask & CWHeight) {
- c->oldh = c->h;
- c->h = ev->height;
+ if (c->ignorecfgreqsize) {
+ if (!c->ignorecfgreqsize) {
+ if (ev->value_mask & CWWidth) {
+ c->oldw = c->w;
+ c->w = ev->width;

Loading…
Cancel
Save