Keypress and other bindings do not work in a window with overrideredirect on mac and linux.

See:


If I comment out the overrideredirect in the code below, and use the following
configuration with the devilspie program to create an undecorated window, then the keypress bindings work:
I have only tested on Linux.

(if (is (application_name) "t.tcl")
   (begin (undecorate)(below)(geometry "+100+100")))

wish
wm title . t.tcl
wm overrideredirect . True
wm geometry . "399x25+100+300"
bind . <KeyPress> {+puts "<KeyPress %K>"}
bind . <Button-1> {puts "<Button-1>"}
bind . <Enter> {puts "<Enter>"}
bind . <Leave> {puts "<Leave>"}
bind . <FocusIn> {puts "<FocusIn>"}
bind . <FocusOut> {puts "<FocusOut>"}