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.

16 lines
548 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. #if MONOCLE_LAYOUT
  8. for (monocle_pos = 0, last_layout = (Layout *)layouts; !last_layout->arrange || last_layout->arrange != &monocle; monocle_pos++, last_layout++ );
  9. #endif // MONOCLE_LAYOUT
  10. for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
  11. setlayout(&((Arg) { .v = &layouts[monocle_pos] }));
  12. } else {
  13. setlayout(&((Arg) { .v = last_layout }));
  14. }
  15. togglebar(arg);
  16. }