Deiconify all window icons

This page shows how to iconify all windows except one. How to deiconify all icons with one mouse click?

I found this nice-looking config, it deiconify all icons from the same resource group. Regardless of group, how to deiconify?

# Button 2 (middle mouse) click on icon with CTRL key.
# It deiconify all icons from the same resource group.
#-----------------------------------------------------
Mouse 2  I  C	FuncIconifySameResource toggle

DestroyFunc FuncIconifySameResource
AddToFunc   FuncIconifySameResource
+ I All ($[w.resource]) Iconify $0

Hi @Ivar

Haven’t you answered this yourself?

All (Iconic) Iconify off

I didn’t manage without breaking other modules. Thanks, this was simple.

I am using the “iconify all windows except one” example. After deiconify all window icons, the window that was not iconified is at the bottom. I want it on top. This command requires pointing and mouse click.

+ I All (Iconic) Iconify off
+ I Raise

Is there a question in all of this?

I think @Ivar wants the bottom window, which was not iconified, to be on top without an additional mouse click.

All windows are in layer 4, so how to reverse the window positions? I got this to work, but there is a better solution and the top window is unfocused.

+ I All (Iconic) Iconify off
+ I Current InfoStoreAdd WLIST $[w.id]
+ I WindowId $[infostore.WLIST] WarpToWindow 50 50
1 Like

Thanks, it works fine.
How to get the top window focused? The window below is focused, how to change it.

This is unnecessarily convoluted.

You’re using InfoStore to save the window ID of the current (focused) window, only to then use WindowID to call WarpToWindow.

Odd.

Next (CurrentDesk, AcceptsFocus) Focus

There is a delay with WarpToWindow or something else, so Next () Focus needs a Schedule.

+ I All (Iconic) Iconify off
+ I Current InfoStoreAdd WLIST $[w.id]
+ I WindowId $[infostore.WLIST] WarpToWindow 50 50
+ I Schedule 300 Next (CurrentDesk, AcceptsFocus) Focus

Not ideal but does the work if no other solution.

There is same top window problem in Taviso’s WindowList function – FvwmExpose. I am using ExposeList . The selected window in the thumbnail windowlist, becomes unfocused. There is a focus on a lower window. How to focus the top window?

focus-top-window

I found this topic similar to $[w.id] in FvwmExpose, but for some reason it doesn’t work.

WindowId $[w.id] Focus

Thanks @Ivar for bringing this up. I found a missing Focus and Raise.

Add Focus between $[w.id] and WarpToWindow in this line. It gives focus on the selected window.

%$[cacheExp]/icon.exp.$[w.id].png%\\\'\" $[w.class] \"\\\' WindowID $[w.id] Focus WarpToWindow 50 50 \

Add Raise at the end…
+ I Current Raise

3 Likes