togglefakefullscreen for any client
@@ -2202,11 +2202,12 @@ togglealttag()
void
togglefakefullscreen(){
- if ( selmon->sel->isfullscreen) {
- return;
- } else {
- selmon->sel->isfakefullscreen = !selmon->sel->isfakefullscreen;
+ if (selmon->sel->isfakefullscreen) {
+ resizeclient(selmon->sel, selmon->mx, selmon->my, selmon->mw, selmon->mh);
+ XRaiseWindow(dpy, selmon->sel->win);
}
+
+ selmon->sel->isfakefullscreen = !selmon->sel->isfakefullscreen;
}
void
