dwm

Kris's build of dwm
git clone git clone https://git.krisyotam.com/krisyotam/dwm.git
Log | Files | Refs | README | LICENSE

fullscreen.c (550B)


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