mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-03-22 08:51:31 +00:00
Upload files to "patches/centeredmaster"
changes to positioning of windows
This commit is contained in:
parent
f8d1cfad11
commit
675fa1815e
@ -78,16 +78,44 @@ index def2562..c2456dd 100644
|
|||||||
+ if (n == 0)
|
+ if (n == 0)
|
||||||
+ return;
|
+ return;
|
||||||
+
|
+
|
||||||
|
# + /* initialize areas */
|
||||||
|
# + mw = m->w.width;
|
||||||
|
# + mx = 0;
|
||||||
|
# + my = 0;
|
||||||
|
# + tw = mw;
|
||||||
|
# +
|
||||||
|
# + if (n > m->nmaster) {
|
||||||
|
# + /* go mfact box in the center if more than nmaster clients */
|
||||||
|
# + mw = m->nmaster ? (int)roundf(m->w.width * m->mfact) : 0;
|
||||||
|
# + tw = m->w.width - mw;
|
||||||
|
# +
|
||||||
|
# + if (n - m->nmaster > 1) {
|
||||||
|
# + /* only one client */
|
||||||
|
# + mx = (m->w.width - mw) / 2;
|
||||||
|
# + tw = (m->w.width - mw) / 2;
|
||||||
|
# + }
|
||||||
|
# + }
|
||||||
+ /* initialize areas */
|
+ /* initialize areas */
|
||||||
+ mw = m->w.width;
|
+ // checks if the screen is larger than
|
||||||
+ mx = 0;
|
+ if (m->w.width > 1920){
|
||||||
+ my = 0;
|
+ mw = m->w.width - (m->w.width /2);
|
||||||
+ tw = mw;
|
+ mx = m->w.width / 4;
|
||||||
|
+ my = 0;
|
||||||
|
+ 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;
|
||||||
+
|
+
|
||||||
+ if (n - m->nmaster > 1) {
|
+ if (n - m->nmaster > 1) {
|
||||||
+ /* only one client */
|
+ /* only one client */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user