about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2010-05-29 12:48:11 +0100
committerAnselm R Garbe <anselm@garbe.us>2010-05-29 12:48:11 +0100
commit5c6545adf5e2fc7011bd53735910f66998cade64 (patch)
tree58a9a5fd83b154e38b6fdc3cc8d4fb7b8c4a8698
parenta704b1ee34dd84fa5ba65ed1981eb3a69bf8633f (diff)
downloaddwm-5.8.1.tar.gz
removing Sylvain's patch because it breaks more than it fixes unfortunately, re-issuing a bugfix release 5.8.1 5.8.1
-rw-r--r--config.mk2
-rw-r--r--dwm.c20
2 files changed, 2 insertions, 20 deletions
diff --git a/config.mk b/config.mk
index 303984d..df7194b 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.8
+VERSION = 5.8.1
 
 # Customize below to fit your system
 
diff --git a/dwm.c b/dwm.c
index fedf069..5df4919 100644
--- a/dwm.c
+++ b/dwm.c
@@ -57,8 +57,7 @@
 /* enums */
 enum { CurNormal, CurResize, CurMove, CurLast };        /* cursor */
 enum { ColBorder, ColFG, ColBG, ColLast };              /* color */
-enum { NetSupported, NetWMName, NetWMState,
-       NetWMFullscreen, NetLast };                      /* EWMH atoms */
+enum { NetSupported, NetWMName, NetWMState, NetLast };  /* EWMH atoms */
 enum { WMProtocols, WMDelete, WMState, WMLast };        /* default atoms */
 enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
        ClkClientWin, ClkRootWin, ClkLast };             /* clicks */
@@ -162,7 +161,6 @@ static void checkotherwm(void);
 static void cleanup(void);
 static void cleanupmon(Monitor *mon);
 static void clearurgent(Client *c);
-static void clientmessage(XEvent *e);
 static void configure(Client *c);
 static void configurenotify(XEvent *e);
 static void configurerequest(XEvent *e);
@@ -251,7 +249,6 @@ static int (*xerrorxlib)(Display *, XErrorEvent *);
 static unsigned int numlockmask = 0;
 static void (*handler[LASTEvent]) (XEvent *) = {
 	[ButtonPress] = buttonpress,
-	[ClientMessage] = clientmessage,
 	[ConfigureRequest] = configurerequest,
 	[ConfigureNotify] = configurenotify,
 	[DestroyNotify] = destroynotify,
@@ -1295,20 +1292,6 @@ propertynotify(XEvent *e) {
 }
 
 void
-clientmessage(XEvent *e) {
-	XClientMessageEvent *cme = &e->xclient;
-
-	if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
-		if(cme->data.l[0])
-			XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
-			                PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
-		else
-			XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
-			                PropModeReplace, (unsigned char*)0, 0);
-	}
-}
-
-void
 quit(const Arg *arg) {
 	running = False;
 }
@@ -1512,7 +1495,6 @@ setup(void) {
 	netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
 	netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
 	netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
-	netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
 	/* init cursors */
 	cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
 	cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
h</title> <style> @import url('https://fonts.googleapis.com/css2?family=Shantell+Sans&display=swap'); body { margin: 0; padding: 0; font-family: 'Shantell Sans', cursive; } textarea { font-family: 'Shantell Sans', cursive; font-size: 1.75em; padding: 1em; border: 0; outline: 0; width: 100%; } canvas { padding: 0; width: 100%; } #noteArea, #drawingArea { margin: 0 auto; display: block; } #toggleButton { border: 1px solid black; background-color: transparent; padding: 0.5em 1em; position: fixed; top: 10px; right: 10px; z-index: 1000; } #toggleButton:hover { cursor: pointer; } </style> </head> <body> <button id="toggleButton">Toggle</button> <textarea id="noteArea" rows="10" cols="30" placeholder="This is a modal note taking tool. With it, you can type text that'll be saved to the browser, and you can draw images that'll also be saved to the browser. You are in typing mode right now. To toggle between modes tap cmd or ctrl + d. When in drawing mode, tap c to clear the canvas, tap s to save the contents of the canvas to a png."></textarea> <canvas id="drawingArea" width="500" height="500"></canvas> <script src="ink.js"></script> </body> </html>