[comp.windows.x] interesting VTWM behavior and patch

stevebe@ncr-fc.ncr.com (Steve.Beaty) (08/24/90)

i noticed some behavior that seemed odd to me: when i moved an icon,
the Virtual Desktop poped the window open where it should be, even
though i hadn't opened it.  i hunted down where this happened and made
a small (a one-liner :-) change.  here is the patch:

------- menus.c -------
*** /tmp/da1403	Fri Aug 24 08:56:09 1990
--- menus.c	Fri Aug 24 08:50:24 1990
***************
*** 1553,1559 ****
  	tmp_win->virtual_frame_x = Scr->VirtualDesktopX + tmp_win->frame_x;
  	tmp_win->virtual_frame_y = Scr->VirtualDesktopY + tmp_win->frame_y;
  
! 	AddToDesktop(tmp_win);
  
          break;
  
--- 1553,1560 ----
  	tmp_win->virtual_frame_x = Scr->VirtualDesktopX + tmp_win->frame_x;
  	tmp_win->virtual_frame_y = Scr->VirtualDesktopY + tmp_win->frame_y;
  
! 	if (!moving_icon)
! 		AddToDesktop(tmp_win);
  
          break;
  

Steve Beaty					Steve.Beaty@ftcollins.ncr.com
Advanced CAD			              beaty@longs.lance.colostate.edu
NCR Microelectronics                                     (303) 223-5100 x 622

"What You See Is What You Get, 
	but it sure ain't what we need." - Talking Heads