mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02: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
|
||||
{ MODKEY, XK_y, togglefullscreen, {0} },
|
||||
#endif // TOGGLEFULLSCREEN_PATCH
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||
{ MODKEY|ShiftMask, XK_y, togglefakefullscreen, {0} },
|
||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if FULLSCREEN_PATCH
|
||||
|
4
dwm.c
4
dwm.c
@ -159,7 +159,7 @@ struct Client {
|
||||
unsigned int switchtag;
|
||||
#endif // SWITCHTAG_PATCH
|
||||
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||
int fakefullscreen;
|
||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if EXRESIZE_PATCH
|
||||
@ -1745,7 +1745,7 @@ focus(Client *c)
|
||||
#if LOSEFULLSCREEN_PATCH
|
||||
Client *at;
|
||||
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))
|
||||
setfullscreen(at, 0);
|
||||
#else
|
||||
|
@ -37,7 +37,7 @@
|
||||
#if EXRESIZE_PATCH
|
||||
#include "exresize.c"
|
||||
#endif
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#include "fakefullscreenclient.c"
|
||||
#endif
|
||||
#if FOCUSADJACENTTAG_PATCH
|
||||
|
@ -37,7 +37,7 @@
|
||||
#if EXRESIZE_PATCH
|
||||
#include "exresize.h"
|
||||
#endif
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#include "fakefullscreenclient.h"
|
||||
#endif
|
||||
#if FOCUSADJACENTTAG_PATCH
|
||||
|
@ -4,7 +4,7 @@ togglefullscreen(const Arg *arg)
|
||||
if (!selmon->sel)
|
||||
return;
|
||||
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
||||
if (selmon->sel->fakefullscreen) {
|
||||
selmon->sel->fakefullscreen = 0;
|
||||
if (selmon->sel->isfullscreen) {
|
||||
|
@ -172,6 +172,7 @@
|
||||
/* 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
|
||||
* 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/
|
||||
*/
|
||||
#define FAKEFULLSCREEN_PATCH 0
|
||||
|
Loading…
Reference in New Issue
Block a user