Remove center patch (hard to use on small screens)

This commit is contained in:
2024-06-26 19:26:21 +01:00
parent 1bdb134941
commit f2420bec9f
4 changed files with 3 additions and 81 deletions

View File

@@ -107,7 +107,7 @@ struct Client {
int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid;
int bw, oldbw;
unsigned int tags;
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, CenterThisWindow, needresize;
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, needresize;
Client *next;
Client *snext;
Monitor *mon;
@@ -153,7 +153,6 @@ typedef struct {
const char *title;
unsigned int tags;
int isfloating;
int CenterThisWindow;
int monitor;
} Rule;
@@ -322,7 +321,6 @@ applyrules(Client *c)
/* rule matching */
c->isfloating = 0;
c->CenterThisWindow = 0;
c->tags = 0;
XGetClassHint(dpy, c->win, &ch);
class = ch.res_class ? ch.res_class : broken;
@@ -335,7 +333,6 @@ applyrules(Client *c)
&& (!r->instance || strstr(instance, r->instance)))
{
c->isfloating = r->isfloating;
c->CenterThisWindow = r->CenterThisWindow;
c->tags |= r->tags;
for (m = mons; m && m->num != r->monitor; m = m->next);
if (m)
@@ -1933,13 +1930,6 @@ tile(Monitor *m)
if (ty + HEIGHT(c) < m->wh)
ty += HEIGHT(c);
}
if (n == 1 && selmon->sel->CenterThisWindow)
resizeclient(selmon->sel,
(selmon->mw - selmon->mw * 0.5) / 2,
(selmon->mh - selmon->mh * 0.5) / 2,
selmon->mw * 0.5,
selmon->mh * 0.5);
}
void