summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2022-09-07 01:48:28 +0100
committerrafa_99 <raroma09@gmail.com>2022-09-07 01:48:28 +0100
commit9cabfcb69387478f5d4faa40a0667b24a7facf1b (patch)
tree84d441649a0490d9b4ddb74a81575f09600840d4 /dwm.c
parent8044f081dacdc1b8043de5a17286c95645adb946 (diff)
Revert "Added sticky windows option"
This reverts commit 8044f081dacdc1b8043de5a17286c95645adb946.
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/dwm.c b/dwm.c
index 7710e23..abda686 100644
--- a/dwm.c
+++ b/dwm.c
@@ -55,7 +55,7 @@
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
#define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \
* MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy)))
-#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags]) || C->issticky)
+#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags]))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define MOUSEMASK (BUTTONMASK|PointerMotionMask)
#define WIDTH(X) ((X)->w + 2 * (X)->bw)
@@ -230,7 +230,6 @@ static void tagtoleft(const Arg *arg);
static void tagtoright(const Arg *arg);
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
-static void togglesticky(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unfocus(Client *c, int setfocus);
@@ -1876,15 +1875,6 @@ togglefloating(const Arg *arg)
}
void
-togglesticky(const Arg *arg)
-{
- if (!selmon->sel)
- return;
- selmon->sel->issticky = !selmon->sel->issticky;
- arrange(selmon);
-}
-
-void
toggletag(const Arg *arg)
{
unsigned int newtags;