Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Catching Window Resize Event

10 views
Skip to first unread message

Ricky Wai Kit Yuen

unread,
Apr 1, 1994, 2:56:17 AM4/1/94
to

Hi folks. I am trying to bind a window to the X resize event using the following script:

bind .mywindow <RequestResize> <puts stdout "Resize requested: %w x %h}

However, it doesn't seem work. Anyone has any clue? Thanks in advance.

-Ricky

Edward L. Karrels

unread,
Apr 1, 1994, 12:54:02 PM4/1/94
to
Ricky Wai Kit Yuen (rwy...@ak.engin.umich.edu) wrote:

: Hi folks. I am trying to bind a window to the X resize event using the following script:

: bind .mywindow <RequestResize> <puts stdout "Resize requested: %w x %h}

: However, it doesn't seem work. Anyone has any clue? Thanks in advance.

Yea, I had the same problem. Try a <Configure> event. Why ResizeRequest
doesn't work, who knows... This should work:

bind . <Configure> \
{puts stdout {Resize requested, position: (%x,%y), size: (%h %w)}}

Ed Karrels
kar...@mcs.anl.gov

Eric Schenk

unread,
Apr 1, 1994, 8:56:23 PM4/1/94
to

The <Configure> event is the one you want.
The <RequestResize> event is sent by a child window to the
owner of a parent window to indicate that it wants to be resized.
In the normal course of things RequestResize is passed to the
window manager by a client that wants it's size changed, and
the window manager sends back a configure event indicating what
changes where made. This is all detailed in the ICCCM for the
morbidly curious.

-- eric

---------------------------------------------------------------------------
Eric Schenk sch...@cs.toronto.edu
Department of Computer Science, University of Toronto

0 new messages