Working like a … hmm what’s a thing just below charm?
Because I’m using a ClickToFocus in my config, the focus_change was for me, but I just found a little annoyance with the whole thing. The title updates itself only when focus is changed. To get me right, say… with a web browser when you browse to another page, the button created to show the title doesn’t obviously update itself because the focus remains on the same window.
…And at the same time as a was going to ask the real question, I just figured that adding window_name (or icon_name?) to FE-TB does what I wanted.
*FE-TB: Cmd Function
*FE-TB: focus_change TitleFB # BETTER FOR CLICKTOFOCUS
*FE-TB: window_name TitleFB # ADDED THIS ONE
Module FvwmEvent FE-TB[/code]
Is that the correct way to do it, or can someone suggest a better one? Also, is there a difference in this case whether you use window_name or icon_name?
(hmm… After testing it a few times, restarting FVWM with a few windows open gives me Desk 0 to the title button and it doesn’t change until focus or title has changed. Should there be a “wait for all of the windows to be drawn” in some place?)
Anyway, the whole thing seems like a nice way to “detatch” the titlebar
So it seems… And it does the same job too though I’m still don’t know what the string attribute is supposed to do? To update the title of “mybutton” when I don’t change focused window (when loading a new page in web browser etc) I still have to use the window_name attribute.
Sorry about that. I just had an idea to make a “universal titlebar” with FvwmButtons. Once the basic structure of it is clear and functional, one could easily make it to be sort of a mixture of a panel and a titlebar to make it more useful (which was the idea in the 1st screenshot).
At the moment I’m puzzled with how to clear that “title button” when a desktop is empty and how to make it ignore certain windows (like the one’s that are skipped from windowlist etc.), but I’ll keep on searching and tweaking.
Here’s a cleaner shot where X is close, _ is iconify and O is maximize, and nothing extra. I hope that clears it up?
Oh, and If there is another, simpler (or less resource hungry?) way to achieve this, please tell me