Context - Ubuntu 18.04.2 LTS Gnome-Shell 3.28.3 Perl 5.26.1 Tk 804.034
Challenge - identifying what event/s is/are issued when a Tk TopLevel window in state 'iconic' is changed to state 'normal'. I have tried binding to Map,Unmap,Configure,Visibility,Expose,ButtonRelease-1 events and while I get the expected events from 'normal' to 'iconic' I do not get any that I can identify in the reverse direction i.e. when I left mouse click on the window's icon(I assigned via $mw->iconphoto(...)) under the Ubuntu Activities bar the window appears but so far I have not found which event/s accompanies said - I'm currently guessing none as the related action is not under Tk orchestration albeit Tk should know such an action occurred and could generate at least a 'Visibility' event.

The problem I am trying to address is a means to re-display a withdrawn 'undecorated' (overrideredirect(1)) window as such windows do not appear to allow being 'iconic' so I have a simple decorated window (initially withdrawn then iconized when 'undecorated' withdrawn) to hold the icon I want which when pressed will in essence raise the 'undecorated' one and quickly withdraw itself - hence the need to bind to whatever event will tell me its now visible!


Any help in direction greatly appreciated!


In reply to Identify Tk state iconic to normal events by WayneRas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.