diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-08-19 01:48:52 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-08-19 01:48:52 +0300 |
commit | 496351cdd28cbdaef9b7bbdf6496493925848cf4 (patch) | |
tree | 32b7ebd6d7bef1171e934004a732e13f34eff452 /dwm.c.orig | |
parent | f44745c9ec54d5814f3e9133c33c1b703fc86884 (diff) |
Revert "WinIcon Patch"6.4-Mainline
This reverts commit 48d827bb16e57a06c951c08bcf98ca1c088da9eb.
Changes to be committed:
modified: config.def.h
modified: config.def.h.orig
modified: config.h
modified: config.mk
deleted: config.mk.orig
modified: drw.c
modified: drw.c.orig
modified: drw.h
deleted: drw.h.orig
modified: dwm.c
modified: dwm.c.orig
deleted: patches/dwm-winicon-6.3-v2.1.diff
Diffstat (limited to 'dwm.c.orig')
-rw-r--r-- | dwm.c.orig | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -60,7 +60,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ enum { SchemeNorm, SchemeSel }; /* color schemes */ -enum { NetSupported, NetWMName, NetWMIcon, NetWMState, NetWMCheck, +enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetWMSticky, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ @@ -93,7 +93,6 @@ struct Client { int bw, oldbw; unsigned int tags; int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, issticky; - unsigned int icw, ich; Picture icon; Client *next; Client *snext; Monitor *mon; @@ -248,7 +247,6 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee); static void zoom(const Arg *arg); /* variables */ -static Client *lastfocused = NULL; static const char broken[] = "broken"; static char stext[256]; static int screen; @@ -854,11 +852,7 @@ focus(Client *c) detachstack(c); attachstack(c); grabbuttons(c, 1); - /* set new focused border first to avoid flickering */ XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); - /* lastfocused may be us if another window was unmanaged */ - if (lastfocused && lastfocused != c) - XSetWindowBorder(dpy, lastfocused->win, scheme[SchemeNorm][ColBorder].pixel); setfocus(c); } else { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); @@ -2002,7 +1996,7 @@ unfocus(Client *c, int setfocus) if (!c) return; grabbuttons(c, 0); - lastfocused = c; + XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel); if (setfocus) { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); XDeleteProperty(dpy, root, netatom[NetActiveWindow]); @@ -2029,8 +2023,6 @@ unmanage(Client *c, int destroyed) XSetErrorHandler(xerror); XUngrabServer(dpy); } - if (lastfocused == c) - lastfocused = NULL; free(c); focus(NULL); updateclientlist(); |