   		switch (ev.type) {
   		case ConfigureRequest:
   		case Expose:
---- 1075,1216 ----
+--- 1077,1218 ----
   	if(!selmon->sel)
   		return;
   	if(isprotodel(selmon->sel)) {

! static Monitor *mons=NULL,*selmon=NULL;
  static Window root;
+ static Atom atom_sel,atom_cop,atom_dat;
  
  #include "config.h"
  

  		switch(ev.type) {
  		case ConfigureRequest:
  		case Expose:
--- 1301,1381 ----
  
  void
  clientmessage(XEvent *e) {
