[wiki] [sites] wiki updated
changeset: 761:9f4c5addc5fc
tag: tip
user: Bogdan <jokerboy_AT_punctweb.ro>
date: Wed Aug 31 12:29:32 2011 +0300
files: dwm.suckless.org/patches/dwm-5.8.2-current_desktop.diff dwm.suckless.org/patches/dwm-5.8.2-current_desktop.patch wmi.suckless.org/wmi-10_compile_fixes.diff
description:
fix broken link
diff -r 87ae533d4cb6 -r 9f4c5addc5fc dwm.suckless.org/patches/dwm-5.8.2-current_desktop.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.8.2-current_desktop.diff Wed Aug 31 12:29:32 2011 +0300
_AT_@ -0,0 +1,109 @@
+diff -r 23b71491e149 dwm.c
+--- a/dwm.c Thu Dec 02 10:16:47 2010 +0000
++++ b/dwm.c Mon Dec 13 08:18:03 2010 -0500
+_AT_@ -57,8 +57,8 @@
+ /* 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, NetWMFullscreen,
++ NetNumberOfDesktops, NetCurrentDesktop, NetLast }; /* EWMH atoms */
+ enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
+ enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
+ ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
+_AT_@ -212,6 +212,7 @@
+ static void setclientstate(Client *c, long state);
+ static void setlayout(const Arg *arg);
+ static void setmfact(const Arg *arg);
++static void setnumbdesktops(void);
+ static void setup(void);
+ static void showhide(Client *c);
+ static void sigchld(int unused);
+_AT_@ -227,6 +228,7 @@
+ static void unfocus(Client *c, Bool setfocus);
+ static void unmanage(Client *c, Bool destroyed);
+ static void unmapnotify(XEvent *e);
++static void updatecurrenddesktop(void);
+ static Bool updategeom(void);
+ static void updatebarpos(Monitor *m);
+ static void updatebars(void);
+_AT_@ -1467,6 +1469,13 @@
+ }
+
+ void
++setcurrentdesktop(void){
++ long data[] = { 0 };
++ XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32,
++ PropModeReplace, (unsigned char *)data, 1);
++}
++
++void
+ setclientstate(Client *c, long state) {
+ long data[] = { state, None };
+
+_AT_@ -1502,6 +1511,13 @@
+ }
+
+ void
++setnumbdesktops(void){
++ long data[] = { TAGMASK };
++ XChangeProperty(dpy, root, netatom[NetNumberOfDesktops], XA_CARDINAL, 32,
++ PropModeReplace, (unsigned char *)data, 1);
++}
++
++void
+ setup(void) {
+ XSetWindowAttributes wa;
+
+_AT_@ -1524,6 +1540,8 @@
+ 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);
++ netatom[NetNumberOfDesktops] = XInternAtom(dpy, "_NET_NUMBER_OF_DESKTOPS", False);
++ netatom[NetCurrentDesktop] = XInternAtom(dpy, "_NET_CURRENT_DESKTOP", False);
+ /* init cursors */
+ cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
+ cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
+_AT_@ -1546,6 +1564,10 @@
+ /* EWMH support per view */
+ XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
+ PropModeReplace, (unsigned char *) netatom, NetLast);
++ /* set EWMH NUMBER_OF_DESKTOPS */
++ setnumbdesktops();
++ /* initialize EWMH CURRENT_DESKTOP */
++ setcurrentdesktop();
+ /* select for events */
+ wa.cursor = cursor[CurNormal];
+ wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|ButtonPressMask
+_AT_@ -1688,6 +1710,7 @@
+ selmon->tagset[selmon->seltags] = newtagset;
+ arrange(selmon);
+ }
++ updatecurrenddesktop();
+ }
+
+ void
+_AT_@ -1763,6 +1786,14 @@
+ m->by = -bh;
+ }
+
++void
++updatecurrenddesktop(){
++ long data[] = { selmon->tagset[selmon->seltags] };
++
++ XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32,
++ PropModeReplace, (unsigned char *)data, 1);
++}
++
+ Bool
+ updategeom(void) {
+ Bool dirty = False;
+_AT_@ -1948,6 +1979,7 @@
+ if(arg->ui & TAGMASK)
+ selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
+ arrange(selmon);
++ updatecurrenddesktop();
+ }
+
+ Client *
diff -r 87ae533d4cb6 -r 9f4c5addc5fc dwm.suckless.org/patches/dwm-5.8.2-current_desktop.patch
--- a/dwm.suckless.org/patches/dwm-5.8.2-current_desktop.patch Tue Aug 30 22:05:25 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,109 +0,0 @@
-diff -r 23b71491e149 dwm.c
---- a/dwm.c Thu Dec 02 10:16:47 2010 +0000
-+++ b/dwm.c Mon Dec 13 08:18:03 2010 -0500
-_AT_@ -57,8 +57,8 @@
- /* 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, NetWMFullscreen,
-+ NetNumberOfDesktops, NetCurrentDesktop, NetLast }; /* EWMH atoms */
- enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
- enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
- ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
-_AT_@ -212,6 +212,7 @@
- static void setclientstate(Client *c, long state);
- static void setlayout(const Arg *arg);
- static void setmfact(const Arg *arg);
-+static void setnumbdesktops(void);
- static void setup(void);
- static void showhide(Client *c);
- static void sigchld(int unused);
-_AT_@ -227,6 +228,7 @@
- static void unfocus(Client *c, Bool setfocus);
- static void unmanage(Client *c, Bool destroyed);
- static void unmapnotify(XEvent *e);
-+static void updatecurrenddesktop(void);
- static Bool updategeom(void);
- static void updatebarpos(Monitor *m);
- static void updatebars(void);
-_AT_@ -1467,6 +1469,13 @@
- }
-
- void
-+setcurrentdesktop(void){
-+ long data[] = { 0 };
-+ XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32,
-+ PropModeReplace, (unsigned char *)data, 1);
-+}
-+
-+void
- setclientstate(Client *c, long state) {
- long data[] = { state, None };
-
-_AT_@ -1502,6 +1511,13 @@
- }
-
- void
-+setnumbdesktops(void){
-+ long data[] = { TAGMASK };
-+ XChangeProperty(dpy, root, netatom[NetNumberOfDesktops], XA_CARDINAL, 32,
-+ PropModeReplace, (unsigned char *)data, 1);
-+}
-+
-+void
- setup(void) {
- XSetWindowAttributes wa;
-
-_AT_@ -1524,6 +1540,8 @@
- 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);
-+ netatom[NetNumberOfDesktops] = XInternAtom(dpy, "_NET_NUMBER_OF_DESKTOPS", False);
-+ netatom[NetCurrentDesktop] = XInternAtom(dpy, "_NET_CURRENT_DESKTOP", False);
- /* init cursors */
- cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
- cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
-_AT_@ -1546,6 +1564,10 @@
- /* EWMH support per view */
- XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
- PropModeReplace, (unsigned char *) netatom, NetLast);
-+ /* set EWMH NUMBER_OF_DESKTOPS */
-+ setnumbdesktops();
-+ /* initialize EWMH CURRENT_DESKTOP */
-+ setcurrentdesktop();
- /* select for events */
- wa.cursor = cursor[CurNormal];
- wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|ButtonPressMask
-_AT_@ -1688,6 +1710,7 @@
- selmon->tagset[selmon->seltags] = newtagset;
- arrange(selmon);
- }
-+ updatecurrenddesktop();
- }
-
- void
-_AT_@ -1763,6 +1786,14 @@
- m->by = -bh;
- }
-
-+void
-+updatecurrenddesktop(){
-+ long data[] = { selmon->tagset[selmon->seltags] };
-+
-+ XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32,
-+ PropModeReplace, (unsigned char *)data, 1);
-+}
-+
- Bool
- updategeom(void) {
- Bool dirty = False;
-_AT_@ -1948,6 +1979,7 @@
- if(arg->ui & TAGMASK)
- selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
- arrange(selmon);
-+ updatecurrenddesktop();
- }
-
- Client *
diff -r 87ae533d4cb6 -r 9f4c5addc5fc wmi.suckless.org/wmi-10_compile_fixes.diff
--- a/wmi.suckless.org/wmi-10_compile_fixes.diff Tue Aug 30 22:05:25 2011 +0200
+++ b/wmi.suckless.org/wmi-10_compile_fixes.diff Wed Aug 31 12:29:32 2011 +0300
_AT_@ -4,7 +4,7 @@
_AT_@ -2,6 +2,11 @@
// See ../LICENSE.txt for license details.
//
- // $Id: action.cpp 734 2004-09-27 18:15:45Z garbeam $
+ // $Id$
+
+extern "C" {
+#include <stdlib.h> // free
_AT_@ -64,7 +64,7 @@
_AT_@ -2,6 +2,10 @@
// See ../LICENSE.txt for license details.
//
- // $Id: logger.cpp 734 2004-09-27 18:15:45Z garbeam $
+ // $Id$
+
+extern "C" {
+#include <stdlib.h> // exit
Received on Wed Aug 31 2011 - 11:29:45 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:49 CEST