Good afternoon Clinton and Steve, Just a note about the program on my machine. There seemed to be problems experienced with how fast I changed the size of the window. It kept up well and only did the final forced resize when I let the mouse button go.
Additional testing completed. It does not matter how fast you move the resize around the screen as long as you release the mouse button after you have stopped moving with a .25 sec or more delay. What I did notice is that the effect that Clinton has described occurs if you rapidly move and release the mouse button almost simultaneously. That from time of first start of move, shift across screen to release of mouse button is a very small fraction of a sec. If the above makes sense. Additional testing has also shown that forcing the window to full screen and then back again and resizing stops this problem. Grabbing the title bar and shifting the window position on screen also rectifies the problem. Hope this helps. regards Bruce Rennie On 11/11/16 14:42, Jeffery, Clint (jeffe...@uidaho.edu) wrote: > > > Steve, > > > Your program issuing a resize request for every resize event seems to > be tickling a pathology of some sort. If you start dragging real slow, > it seems to work (at least on my machine) but then goes bonkers. Its > an infinite loop, since Pending() never fails. But my sense is that > after it falls behind a certain amount, resize events and resize > requests form their own feedback loop. It is either that or some kind > of competition between the window system and the application, as to > who is processing input events, and which window retains the focus. It > is like: we are having to repaint the window so many times, the window > system isn't able to continue the drag/resize operation at speed any more. > > > Feel free to contribute improvements to the C code for handling window > resizes. It tries pretty hard to do things like suppress adjacent > resizes to avoid falling behind, but maybe your explicitly resizing in > the middle of that defeats the code that is there. > > > Cheers, > > Clint > > > ------------------------------------------------------------------------ > *From:* Steve Wampler <swamp...@noao.edu> > *Sent:* Thursday, November 10, 2016 6:25:02 PM > *Subject:* Re: [Unicon-group] Resize Graphics window programatically? > On 11/10/2016 03:36 PM, Jafar Al-Gharaibeh wrote: > > Steve, > > > > I tried the on my Ubuntu machine: > > procedure main() > > w := open("resize", "g", "size=400,400") > > Event(w) > > WAttrib(w, "size=800,400") > > Event(w) > > close(w) > > end > > > > It works as advertised. Want to test it at your end? > > That works, but the following version doesn't (where the user can > drag out a new window size): > > procedure main() > w := open("resize", "g", "size=400,400", "resize=on") > repeat { > while Pending(w) do { > Event(w) > x := WAttrib(w, "width"); > WAttrib(w, "size="||x||","||x) > } > } > close(w) > end > > -- > Steve Wampler -- swamp...@noao.edu > The gods that smiled on your birth are now laughing out loud. > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > <http://sdm.link/xeonphi> > <http://sdm.link/xeonphi> > > Developer Access Program (DAP) for Intel® Xeon Xeon Phi™ Processor > Codenamed Knights Landing <http://sdm.link/xeonphi> > sdm.link > Intel is bringing to market, in anticipation of general availability > of the Intel® Xeon Phi™ Processor (codenamed Knights Landing), the > Developer Access Program (DAP). DAP is an early access program for > developers worldwide to purchase an Intel Xeon Phi Processor based > system. This is a stand-alone box that has a single bootable Knights > Landing processor for developers to start developing codes, optimizing > applications, and getting to see the performance. > > > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unicon-group > Unicon-group Info Page - SourceForge > <https://lists.sourceforge.net/lists/listinfo/unicon-group> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the > Unicon-group Archives. Using Unicon-group: To post a message to all > the list members ... > > > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > > > _______________________________________________ > Unicon-group mailing list > Unicon-group@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unicon-group ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group