Login
Immutable PageDiscussionInfoAttachments
attachment:dwm-5.9-rotate.diff of clear/note/2011-09

MMA

Attachment 'dwm-5.9-rotate.diff'

Download

   1 --- dwm.original.c	2011-09-04 14:38:30.232071429 +0900
   2 +++ dwm.c	2011-09-16 00:14:43.811560391 +0900
   3 @@ -206,6 +206,7 @@
   4  static void resizeclient(Client *c, int x, int y, int w, int h);
   5  static void resizemouse(const Arg *arg);
   6  static void restack(Monitor *m);
   7 +static void rotate(const Arg *arg);
   8  static void run(void);
   9  static void scan(void);
  10  static Bool sendevent(Client *c, Atom proto);
  11 @@ -1403,6 +1404,18 @@
  12  }
  13  
  14  void
  15 +rotate(const Arg *arg) {
  16 +	Client *c, *bottom;
  17 +
  18 +	if(!selmon->lt[selmon->sellt]->arrange)
  19 +		return;
  20 +	for(bottom = c = nexttiled(selmon->clients); c; c = nexttiled(c->next))
  21 +		bottom = c;
  22 +	if(bottom)
  23 +		pop(bottom);
  24 +}
  25 +
  26 +void
  27  run(void) {
  28  	XEvent ev;
  29  	/* main event loop */
  30 @@ -2067,3 +2080,4 @@
  31  	XCloseDisplay(dpy);
  32  	return EXIT_SUCCESS;
  33  }
  34 +
  35 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2019-12-24 16:36:53, 0.8 KB) [[attachment:dwm-5.9-rotate.diff]]
  • [get | view] (2019-12-24 16:36:53, 9.3 KB) [[attachment:dwm_tile.png]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.