bind .mywindow <RequestResize> <puts stdout "Resize requested: %w x %h}
However, it doesn't seem work. Anyone has any clue? Thanks in advance.
-Ricky
: 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
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