Skip to content

Commit

Permalink
Distiest hack ever, but show how to force some unusual screen configu…
Browse files Browse the repository at this point in the history
…ration for those lookign to do that. It also allow to built subscreen
  • Loading branch information
Elv13 committed Dec 1, 2010
1 parent 0f5a946 commit 4deb0d7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions awesome-3.4-rc3/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,26 @@ screen_scan(void)
if(!drop)
{
screen_t s;
p_clear(&s, 1);
/*p_clear(&s, 1);
s.geometry = screen_xsitoarea(xsi[screen]);
screen_array_append(&globalconf.screens, s);
screen_array_append(&globalconf.screens, s);*/
if (xsi[screen].width > 2000 ){
s.geometry = screen_xsitoarea(xsi[screen]);
s.geometry.width = 1280;
s.geometry.height = 1024;
screen_array_append(&globalconf.screens, s);
screen_t s2;
p_clear(&s2, 1);
s2.geometry = screen_xsitoarea(xsi[screen]);
s2.geometry.width = 1024;
s2.geometry.height = 768;
s2.geometry.x = s.geometry.x +1280;
screen_array_append(&globalconf.screens, s2);
}
else {
s.geometry = screen_xsitoarea(xsi[screen]);
screen_array_append(&globalconf.screens, s);
}
}
}

Expand Down

0 comments on commit 4deb0d7

Please sign in to comment.