switching windows' Z-order?

Hi, I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front? thanks lars

Excerpts from Chengqi(Lars) Song's message of Sat Jul 04 22:11:10 -0600 2009:
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
As far as I know there's nothing already written to, for example, modify a layout to do that. However, with the following you might not feel the need for it any more: Use the swapUp/Down instead of focusUp/Down actions. In mouse bindings setting mod-button4 and mod-button5 to \_ -> windows W.swapUp and \_ -> windows W.swapDown could be useful too. (W is XMonad.StackSet) -- wmw

swapUp/swapDown works nicely. i wonder how to bind M-S-j as "windows W.swapUp" && "windows W.focusUp"? lars On Sat, 04 Jul 2009, Wirt Wolff wrote:
Excerpts from Chengqi(Lars) Song's message of Sat Jul 04 22:11:10 -0600 2009:
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
As far as I know there's nothing already written to, for example, modify a layout to do that.
However, with the following you might not feel the need for it any more:
Use the swapUp/Down instead of focusUp/Down actions. In mouse bindings setting mod-button4 and mod-button5 to \_ -> windows W.swapUp and \_ -> windows W.swapDown could be useful too. (W is XMonad.StackSet)
-- wmw _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Jul 5, 2009, at 02:24 , Chengqi(Lars) Song wrote:
swapUp/swapDown works nicely. i wonder how to bind M-S-j as "windows W.swapUp" && "windows W.focusUp"?
Sequence them: windows W.swapUp >> windows W.focusUp -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

* On Sunday, July 05 2009, Brandon S. Allbery KF8NH wrote:
On Jul 5, 2009, at 02:24 , Chengqi(Lars) Song wrote:
swapUp/swapDown works nicely. i wonder how to bind M-S-j as "windows W.swapUp" && "windows W.focusUp"?
Sequence them: windows W.swapUp >> windows W.focusUp
windows (W.focusUp . W.swapUp) -- should do the same with only one refresh But in general, you have to go with Brandon's suggestion. -- Adam

Quoting "Chengqi(Lars) Song"
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
Floating and tiled windows are interleaved in layout order. Layout order determines z-order. Therefore, to change z-order, use whatever keybinding you have for moving windows around within a layout (default mod-shift-j and mod-shift-k); you may have to press it several times to affect the (visible) z-order. Specifically for the Gimp, you may also enjoy the "tab" keybinding that Gimp provides to hide and reveal the auxiliary toolbar dialogs. Cheers, ~d

On Sun, Jul 5, 2009 at 2:11 PM, Chengqi(Lars) Song
Hi,
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
thanks lars
I use dwmpromote from XMonad.Actions.DwmPromote as a shortcut in this case. Mod4-Enter in my setup.

Hmm, this is weird. I just Mod-click on the window I want to have in front, and it does it. No mods to the standard xmonad config required. That is, I use the same combination I use to move windows around to raise it. Cheers, Norbert On Sun, Jul 05, 2009 at 12:11:10PM +0800, Chengqi(Lars) Song wrote:
Hi,
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
thanks lars _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- "And it happened all the time that the compromise between two perfectly rational alternatives was something that made no sense at all." -- Neal Stephenson, Anathem

I do the same here. Also, mod+click(hold) to drag is useful in gimp as well.
Thanks!
JW
On Sun, Jul 5, 2009 at 9:24 AM, Norbert Zeh
Hmm, this is weird. I just Mod-click on the window I want to have in front, and it does it. No mods to the standard xmonad config required. That is, I use the same combination I use to move windows around to raise it.
Cheers, Norbert
On Sun, Jul 05, 2009 at 12:11:10PM +0800, Chengqi(Lars) Song wrote:
Hi,
I have problem when using gimp. all Gimp's windows are set to be float. But when I open two pictures, the 1st one's window is covered by the 2nd one. And there is no way to switch their Z-order so that the 1st one can be brought to front. Is there any way to always bring the focused window front?
thanks lars _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- "And it happened all the time that the compromise between two perfectly rational alternatives was something that made no sense at all." -- Neal Stephenson, Anathem _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
participants (8)
-
Adam Vogt
-
Brandon S. Allbery KF8NH
-
Chengqi(Lars) Song
-
Jordan Wilberding
-
Mike Sampson
-
Norbert Zeh
-
wagnerdm@seas.upenn.edu
-
Wirt Wolff