'Toplevel with no border stays on top

If i create a toplevel without border, the toplevel stays always on top of the desktop: toplevel .t -bg red ; wm overrideredirect .t 1

That means, if i drag another application "over" the toplevel, it hides behind the toplevel. Im trying to reimplement "::tk::MessageBox" but without a decorated toplevel. Is there another way to get rid of the "border-decoration" without using "overrideredirect"?

Runing on linux / tk8.6.11

Thanks for any hints, Matthias

tk


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source