Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
501 B

  1. Layout *last_layout;
  2. void
  3. fullscreen(const Arg *arg)
  4. {
  5. int monocle_pos = 0;
  6. if (selmon->showbar || last_layout == NULL) {
  7. for (monocle_pos = 0, last_layout = (Layout *)layouts; !last_layout->arrange || last_layout->arrange != &monocle; monocle_pos++, last_layout++ );
  8. for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
  9. setlayout(&((Arg) { .v = &layouts[monocle_pos] }));
  10. } else {
  11. setlayout(&((Arg) { .v = last_layout }));
  12. }
  13. togglebar(arg);
  14. }