mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
FAKEFULLSCREEN_PATCH takes precedence over the FAKEFULLSCREEN_CLIENT_PATCH, ref. #13
This commit is contained in:
parent
2541d38d2c
commit
873b856428
@ -795,7 +795,7 @@ static Key keys[] = {
|
|||||||
#if TOGGLEFULLSCREEN_PATCH
|
#if TOGGLEFULLSCREEN_PATCH
|
||||||
{ MODKEY, XK_y, togglefullscreen, {0} },
|
{ MODKEY, XK_y, togglefullscreen, {0} },
|
||||||
#endif // TOGGLEFULLSCREEN_PATCH
|
#endif // TOGGLEFULLSCREEN_PATCH
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
{ MODKEY|ShiftMask, XK_y, togglefakefullscreen, {0} },
|
{ MODKEY|ShiftMask, XK_y, togglefakefullscreen, {0} },
|
||||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
#if FULLSCREEN_PATCH
|
#if FULLSCREEN_PATCH
|
||||||
|
4
dwm.c
4
dwm.c
@ -159,7 +159,7 @@ struct Client {
|
|||||||
unsigned int switchtag;
|
unsigned int switchtag;
|
||||||
#endif // SWITCHTAG_PATCH
|
#endif // SWITCHTAG_PATCH
|
||||||
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
|
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
int fakefullscreen;
|
int fakefullscreen;
|
||||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
#if EXRESIZE_PATCH
|
#if EXRESIZE_PATCH
|
||||||
@ -1745,7 +1745,7 @@ focus(Client *c)
|
|||||||
#if LOSEFULLSCREEN_PATCH
|
#if LOSEFULLSCREEN_PATCH
|
||||||
Client *at;
|
Client *at;
|
||||||
for (at = selmon->clients; at; at = at->next)
|
for (at = selmon->clients; at; at = at->next)
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
if (at != c && at->isfullscreen && !at->fakefullscreen && ISVISIBLE(at))
|
if (at != c && at->isfullscreen && !at->fakefullscreen && ISVISIBLE(at))
|
||||||
setfullscreen(at, 0);
|
setfullscreen(at, 0);
|
||||||
#else
|
#else
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#if EXRESIZE_PATCH
|
#if EXRESIZE_PATCH
|
||||||
#include "exresize.c"
|
#include "exresize.c"
|
||||||
#endif
|
#endif
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
#include "fakefullscreenclient.c"
|
#include "fakefullscreenclient.c"
|
||||||
#endif
|
#endif
|
||||||
#if FOCUSADJACENTTAG_PATCH
|
#if FOCUSADJACENTTAG_PATCH
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#if EXRESIZE_PATCH
|
#if EXRESIZE_PATCH
|
||||||
#include "exresize.h"
|
#include "exresize.h"
|
||||||
#endif
|
#endif
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
#include "fakefullscreenclient.h"
|
#include "fakefullscreenclient.h"
|
||||||
#endif
|
#endif
|
||||||
#if FOCUSADJACENTTAG_PATCH
|
#if FOCUSADJACENTTAG_PATCH
|
||||||
|
@ -4,7 +4,7 @@ togglefullscreen(const Arg *arg)
|
|||||||
if (!selmon->sel)
|
if (!selmon->sel)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
if (selmon->sel->fakefullscreen) {
|
if (selmon->sel->fakefullscreen) {
|
||||||
selmon->sel->fakefullscreen = 0;
|
selmon->sel->fakefullscreen = 0;
|
||||||
if (selmon->sel->isfullscreen) {
|
if (selmon->sel->isfullscreen) {
|
||||||
|
@ -172,6 +172,7 @@
|
|||||||
/* Only allow clients to "fullscreen" into the space currently given to them.
|
/* Only allow clients to "fullscreen" into the space currently given to them.
|
||||||
* As an example, this will allow you to view a fullscreen video in your browser on
|
* As an example, this will allow you to view a fullscreen video in your browser on
|
||||||
* one half of the screen, while having the other half available for other tasks.
|
* one half of the screen, while having the other half available for other tasks.
|
||||||
|
* This patch takes precedence over the fakefullscreen client patch below.
|
||||||
* https://dwm.suckless.org/patches/fakefullscreen/
|
* https://dwm.suckless.org/patches/fakefullscreen/
|
||||||
*/
|
*/
|
||||||
#define FAKEFULLSCREEN_PATCH 0
|
#define FAKEFULLSCREEN_PATCH 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user