From a89a4c9273807320484ebd30075a5f58b71ba2cd Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Wed, 14 Jan 2026 00:21:47 +0100 Subject: Switch from c99 to c23 standard 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. --- src/core/dwm.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/core/dwm.h') 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); static void mappingnotify(XEvent *e); static void maprequest(XEvent *e); static void motionnotify(XEvent *e); -static void movemouse(const Arg *arg); +// @TODO marked for removal +// static void movemouse(const Arg *arg); static Client *nexttiled(Client *c); -static void pop(Client *c); +// static void pop(Client *c); static void propertynotify(XEvent *e); -static void quit(const Arg *arg); +// @TODO marked for removal +// static void quit(const Arg *arg); static Monitor *recttomon(int x, int y, int w, int h); static void removesystrayicon(Client *i); static void resize(Client *c, int x, int y, int w, int h, int interact); static void resizebarwin(Monitor *m); static void resizeclient(Client *c, int x, int y, int w, int h); -static void resizemouse(const Arg *arg); +// @TODO marked for removal +// static void resizemouse(const Arg *arg); static void resizerequest(XEvent *e); static void restack(Monitor *m); static void restart(const Arg *arg); @@ -181,7 +184,7 @@ static void run(void); static void scan(void); static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, long d3, long d4); -static void sendmon(Client *c, Monitor *m); +// static void sendmon(Client *c, Monitor *m); static void setclientstate(Client *c, long state); static void setfocus(Client *c); static void setfullscreen(Client *c, int fullscreen); @@ -194,7 +197,7 @@ static Monitor *systraytomon(Monitor *m); static void tag(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); -static void togglefloating(const Arg *arg); +// static void togglefloating(const Arg *arg); static void togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); @@ -221,7 +224,8 @@ static Client *wintosystrayicon(Window w); static int xerror(Display *dpy, XErrorEvent *ee); static int xerrordummy(Display *dpy, XErrorEvent *ee); static int xerrorstart(Display *dpy, XErrorEvent *ee); -static void zoom(const Arg *arg); +// @TODO marked for removal +// static void zoom(const Arg *arg); static pid_t getparentprocess(pid_t p); static int isdescprocess(pid_t p, pid_t c); -- cgit v1.2.3