diff options
| author | Filip Wandzio <contact@philw.dev> | 2026-01-14 00:21:47 +0100 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2026-01-14 00:21:47 +0100 |
| commit | a89a4c9273807320484ebd30075a5f58b71ba2cd (patch) | |
| tree | e8ec5fb16226505a4fbe221e836d5cae3fbca50c /src/core/dwm.h | |
| parent | 10e09252e99335d4d084f3a92dffb9367da14bea (diff) | |
| download | dwm-a89a4c9273807320484ebd30075a5f58b71ba2cd.tar.gz dwm-a89a4c9273807320484ebd30075a5f58b71ba2cd.zip | |
Create sketch for manual testing
Disable redundant functions
The following functions: movemouse, resizemouse, togglefloating, sendmon, pop, quit and zoom shall be removed. Specific windows (loading screens, notifications) will remain floating but there is no need in a window manager for manually toggling the floating behavior. Killing the session is no longer possible via keybinding. Insted I suggested adding a keybinding for reseting dwm and switching to TTY if it fails after all.
Diffstat (limited to '')
| -rw-r--r-- | src/core/dwm.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/dwm.h b/src/core/dwm.h index d3bdf5a..5e1b2e4 100644 --- a/src/core/dwm.h +++ b/src/core/dwm.h | |||
| @@ -163,17 +163,20 @@ static void manage(Window w, XWindowAttributes *wa); | |||
| 163 | static void mappingnotify(XEvent *e); | 163 | static void mappingnotify(XEvent *e); |
| 164 | static void maprequest(XEvent *e); | 164 | static void maprequest(XEvent *e); |
| 165 | static void motionnotify(XEvent *e); | 165 | static void motionnotify(XEvent *e); |
| 166 | static void movemouse(const Arg *arg); | 166 | // @TODO marked for removal |
| 167 | // static void movemouse(const Arg *arg); | ||
| 167 | static Client *nexttiled(Client *c); | 168 | static Client *nexttiled(Client *c); |
| 168 | static void pop(Client *c); | 169 | // static void pop(Client *c); |
| 169 | static void propertynotify(XEvent *e); | 170 | static void propertynotify(XEvent *e); |
| 170 | static void quit(const Arg *arg); | 171 | // @TODO marked for removal |
| 172 | // static void quit(const Arg *arg); | ||
| 171 | static Monitor *recttomon(int x, int y, int w, int h); | 173 | static Monitor *recttomon(int x, int y, int w, int h); |
| 172 | static void removesystrayicon(Client *i); | 174 | static void removesystrayicon(Client *i); |
| 173 | static void resize(Client *c, int x, int y, int w, int h, int interact); | 175 | static void resize(Client *c, int x, int y, int w, int h, int interact); |
| 174 | static void resizebarwin(Monitor *m); | 176 | static void resizebarwin(Monitor *m); |
| 175 | static void resizeclient(Client *c, int x, int y, int w, int h); | 177 | static void resizeclient(Client *c, int x, int y, int w, int h); |
| 176 | static void resizemouse(const Arg *arg); | 178 | // @TODO marked for removal |
| 179 | // static void resizemouse(const Arg *arg); | ||
| 177 | static void resizerequest(XEvent *e); | 180 | static void resizerequest(XEvent *e); |
| 178 | static void restack(Monitor *m); | 181 | static void restack(Monitor *m); |
| 179 | static void restart(const Arg *arg); | 182 | static void restart(const Arg *arg); |
| @@ -181,7 +184,7 @@ static void run(void); | |||
| 181 | static void scan(void); | 184 | static void scan(void); |
| 182 | static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, | 185 | static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, |
| 183 | long d3, long d4); | 186 | long d3, long d4); |
| 184 | static void sendmon(Client *c, Monitor *m); | 187 | // static void sendmon(Client *c, Monitor *m); |
| 185 | static void setclientstate(Client *c, long state); | 188 | static void setclientstate(Client *c, long state); |
| 186 | static void setfocus(Client *c); | 189 | static void setfocus(Client *c); |
| 187 | static void setfullscreen(Client *c, int fullscreen); | 190 | static void setfullscreen(Client *c, int fullscreen); |
| @@ -194,7 +197,7 @@ static Monitor *systraytomon(Monitor *m); | |||
| 194 | static void tag(const Arg *arg); | 197 | static void tag(const Arg *arg); |
| 195 | static void tile(Monitor *m); | 198 | static void tile(Monitor *m); |
| 196 | static void togglebar(const Arg *arg); | 199 | static void togglebar(const Arg *arg); |
| 197 | static void togglefloating(const Arg *arg); | 200 | // static void togglefloating(const Arg *arg); |
| 198 | static void togglefullscr(const Arg *arg); | 201 | static void togglefullscr(const Arg *arg); |
| 199 | static void toggletag(const Arg *arg); | 202 | static void toggletag(const Arg *arg); |
| 200 | static void toggleview(const Arg *arg); | 203 | static void toggleview(const Arg *arg); |
| @@ -221,7 +224,8 @@ static Client *wintosystrayicon(Window w); | |||
| 221 | static int xerror(Display *dpy, XErrorEvent *ee); | 224 | static int xerror(Display *dpy, XErrorEvent *ee); |
| 222 | static int xerrordummy(Display *dpy, XErrorEvent *ee); | 225 | static int xerrordummy(Display *dpy, XErrorEvent *ee); |
| 223 | static int xerrorstart(Display *dpy, XErrorEvent *ee); | 226 | static int xerrorstart(Display *dpy, XErrorEvent *ee); |
| 224 | static void zoom(const Arg *arg); | 227 | // @TODO marked for removal |
| 228 | // static void zoom(const Arg *arg); | ||
| 225 | 229 | ||
| 226 | static pid_t getparentprocess(pid_t p); | 230 | static pid_t getparentprocess(pid_t p); |
| 227 | static int isdescprocess(pid_t p, pid_t c); | 231 | static int isdescprocess(pid_t p, pid_t c); |
