Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!orion!jfy From: jfy@orion.cis.ksu.edu (Joseph F. Young) Newsgroups: comp.windows.x Subject: Re: Trouble with tvtwm (Bug?) Message-ID: <1990Sep4.045014.7882@maverick.ksu.ksu.edu> Date: 4 Sep 90 04:50:14 GMT References: <1990Sep3.131517.28047@batcomputer.tn.cornell.edu> Sender: news@maverick.ksu.ksu.edu (The News Guru) Organization: Kansas State University Lines: 81 cchase@ee.cornell.edu (Craig M. Chase) writes: >[...] >However, I've been having some trouble with resizing windows. When I try >to resize a window, xterm for example, the window explodes to some ` >ridiculous size as soon as I click on the resize box. For example, if >I were to try to resize this window, it would jump to something like >180x50, most of which is off of the screen. >I only have this problem when I'm away from the upper left hand corner >of the virtual root window. So what I end up doing to resize is >f.scrollhome, drag the window there, resize it, put it back where >it used to be, pan over there, and go back to work. Kind of a nuisance. >Has anyone else had this problem. I'm using the tvtwm posted on >comp.sources.x with the Official patch applied (why didn't the official >patch take care of the &wName, &iName bug in vdt.c? did I apply it wrong?) >on a sparcstation 1+ with OS 4.1, gcc... >Craig >-- >---------------------------------------------------------------------- >Craig Chase | Cornell University >cchase@ee.cornell.edu | Department of Electrical Engineering >---------------------------------------------------------------------- I believe I have a patch which will fix the resize problem. This is an *unofficial* patch, etc... Please let me know how it works out for you. *** resize.c.original Mon Sep 3 22:42:56 1990 --- resize.c Mon Sep 3 23:11:35 1990 *************** *** 150,155 **** --- 150,159 ---- XGetGeometry(dpy, (Drawable) tmp_win->frame, &junkRoot, &dragx, &dragy, (unsigned int *)&dragWidth, (unsigned int *)&dragHeight, &junkbw, &junkDepth); + if (Scr->VirtualDesktop && !tmp_win->sticky) { + dragx -= Scr->vdtPositionX; + dragy -= Scr->vdtPositionY; + } dragx += tmp_win->frame_bw; dragy += tmp_win->frame_bw; origx = dragx; *************** *** 200,205 **** --- 204,215 ---- dragx = x + tmp_win->frame_bw; dragy = y + tmp_win->frame_bw; + + if (Scr->VirtualDesktop && !tmp_win->sticky) { + dragx -= Scr->vdtPositionX; + dragy -= Scr->vdtPositionY; + } + origx = dragx; origy = dragy; dragWidth = origWidth = w - 2 * tmp_win->frame_bw; *************** *** 431,436 **** --- 441,451 ---- if (dragWidth != tmp_win->frame_width || dragHeight != tmp_win->frame_height) tmp_win->zoomed = ZOOM_NONE; + + if (Scr->VirtualDesktop && !tmp_win->sticky) { + dragx += Scr->vdtPositionX; + dragy += Scr->vdtPositionY; + } SetupWindow (tmp_win, dragx - tmp_win->frame_bw, dragy - tmp_win->frame_bw, dragWidth, dragHeight, -1); -- Joseph Young, KSU Department of Computing and Information Sciences Manhattan, Kansas 66506 Phone: (913) 532-6350 Inet: jfy@ksuvax1.cis.ksu.edu UUCP: {rutgers,texbell}!ksuvax1!jfy -- "MS-DOS...just say no." --