mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-03-22 00:41:30 +00:00
Update patches/centeredmaster/centeredmaster.patch
fixed windows on being placed properly on smaller screens
This commit is contained in:
parent
447397a44c
commit
80c0d175a3
@ -96,24 +96,14 @@ index def2562..c2456dd 100644
|
|||||||
# + }
|
# + }
|
||||||
# + }
|
# + }
|
||||||
+ /* initialize areas */
|
+ /* initialize areas */
|
||||||
+ // checks if the screen is larger than
|
|
||||||
+ if (m->w.width > 1920){
|
|
||||||
+ mw = m->w.width - (m->w.width /2);
|
+ mw = m->w.width - (m->w.width /2);
|
||||||
+ mx = m->w.width / 4;
|
+ mx = m->w.width / 4;
|
||||||
+ my = 0;
|
+ my = 0;
|
||||||
+ tw = mw;
|
+ tw = mw;
|
||||||
+ }
|
|
||||||
+ else{
|
|
||||||
+ mw = m->w.width;
|
|
||||||
+ mx = 0 ;
|
|
||||||
+ my = 0;
|
|
||||||
+ tw = mw;
|
|
||||||
+ }
|
|
||||||
+
|
+
|
||||||
+ if (n > m->nmaster) {
|
+ if (n > m->nmaster) {
|
||||||
+ /* go mfact box in the center if more than nmaster clients */
|
+ /* go mfact box in the center if more than nmaster clients */
|
||||||
+ // mw = m->nmaster ? (int)roundf(m->w.width * m->mfact) : 0;
|
+ // mw = m->nmaster ? (int)roundf(m->w.width * m->mfact) : 0;
|
||||||
+
|
|
||||||
+ // tw = m->w.width - mw;
|
+ // tw = m->w.width - mw;
|
||||||
+ tw = mw / 2;
|
+ tw = mw / 2;
|
||||||
+
|
+
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user