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.

18 lines
376 B

  1. void
  2. togglefakefullscreen(const Arg *arg)
  3. {
  4. Client *c = selmon->sel;
  5. if (!c)
  6. return;
  7. if (c->fakefullscreen != 1 && c->isfullscreen) { // exit fullscreen --> fake fullscreen
  8. c->fakefullscreen = 2;
  9. setfullscreen(c, 0);
  10. } else if (c->fakefullscreen == 1) {
  11. setfullscreen(c, 0);
  12. c->fakefullscreen = 0;
  13. } else {
  14. c->fakefullscreen = 1;
  15. setfullscreen(c, 1);
  16. }
  17. }