[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2590.0. "Resizing windows in UP-direction" by STU01::BGEISELHART () Tue Apr 10 1990 07:55

    Hello,
    i 've got a problem with resizing my windows in the up-direction,
    so that it should have a new x,y value. When I try to set the
    x and y values to the values they had before the window-manager
    doesn't know that they are changed and he doesn't change them to
    the old values. Does anyone know this problem ????
    
    Thank You 
    Bianca
T.RTitleUserPersonal
Name
DateLines
2590.1Is this a Bug or a Feature?STU01::BGEISELHARTWed Apr 25 1990 07:4120
    Hello again,
    no help anywhere???
    May be I have not said clearly what my problem is, please excuse
    my bad english.
    
    I have an application with a lot of windows. When I resize a window
    with the resize button in the upper direction everything is fine.
    But now the windowmanager should now (configure request) that not
    just width and height have changed, but also x and y. He should,
    but he don't. When I now try to reset the Window with Xtsetvalues
    to old x and y and maybe old width and height, windowmanger changes
    width and height but leaves x and y the same, maybe because he has
    not recognized that they where changed by the resize button.
    
    Is this a known bug, are there work arounds, when will it be fixed,
    ...????
    
    Starting holiday on 3rd of May, but this must be fixed before.
    
    Thanks Bianca.
2590.2Some ideas...LEOVAX::TREGGIARIThu Apr 26 1990 09:3426
>    But now the windowmanager should now (configure request) that not
>    just width and height have changed, but also x and y. He should,
>    but he don't. 
    
    I don't remember the exact details of what goes on here, but it is 
    complicated by the fact that your application's shell widget is
    *really* a child of a window manager window and *not* the root
    window.  That is, your window's *real* x and y are 
    (-border_width, -border_width) if I remember correctly, since our
    window manager displays its own borders.  I think there should be
    a 2nd "synthetic" configure_notify event (generated by the window
    manager) that will come along and tell you the new x and y.  It's
    "synthetic" because as far as the server is concerned, the x and
    y of your window have *not* changed.
    
>    When I now try to reset the Window with Xtsetvalues
>    to old x and y and maybe old width and height, windowmanger changes
>    width and height but leaves x and y the same, maybe because he has
>    not recognized that they where changed by the resize button.
    
    You may be running into a timing problem if you are reacting
    directly to the first configure_notify.  But as I said, I don't
    remember the exact details...
    
    Leo
    
2590.3Known (to some, at least)DECWIN::KLEINMon Apr 30 1990 13:479
>    Is this a known bug, are there work arounds, when will it be fixed,
>    ...????

Yes, I believe it is a "known bug".  I've run into it, too.  No idea whether
it will (ever) be fixed.

I haven't found a workaround, but I haven't worked on it too hard, either.

-steve-