wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Grabbing window with <super>+single left click doesn't bring it forward.

Open k9spud opened this issue 5 years ago • 6 comments

Grabbing window with [super]+single left click doesn't bring it forward.

When I want to bring a window forward to display itself on top of all the other windows, I often use the grab feature of my old window manager by holding down the [super] key and then single left click in the window.

In Wayfire, there is a grab feature, but unfortunately, unless I actually move the window when I grab it, Wayfire puts the window back down to it's original Z-position (behind other windows) as soon as I release the mouse button. It shouldn't do that.

Someone might ask, "Well, why don't you just left click without holding down [super]?"

The problem with simply left clicking is that you might accidentally click on a button or link inside the window, making that app go do something you didn't want it to do. By holding down [super], you're telling the window manager to NOT forward the left click event into the client, which is very helpful when you're trying to bring a window forward to look at it more carefully before performing any actions.

To Reproduce Steps to reproduce the behavior:

  1. Stack a bunch of windows overlapping each other.
  2. Hold down [super] and single left click on one of the windows that is being largely hidden by windows in front of it. Do not move the mouse.
  3. Window will briefly flicker to the front, then fall back down to it's original Z-order once the left mouse button has been released.

Expected behavior Window should stay on top.

Wayfire version 0.7.0

k9spud avatar Mar 14 '21 16:03 k9spud

I can reproduce, this is an interesting bug. Will fix this for the next release.

ammen99 avatar Mar 14 '21 19:03 ammen99

I can't reproduce this with latest master, can anyone else?

soreau avatar Oct 12 '22 19:10 soreau

Seems to work nowadays, closing.

ammen99 avatar Jun 26 '23 13:06 ammen99

Now that 0.8.0 is released, I had a chance to test this. It works much better now, but I still have the problem when the window underneath happens to be in a maximized or full screen state. So, I'd say this bug is not fully resolved.

k9spud avatar Oct 26 '23 09:10 k9spud

There are a few core options which might help you achieve this (they were previously not in the wiki, I just added them): https://github.com/WayfireWM/wayfire/wiki/Configuration#corefocus_button_with_modifiers

The reason for the behavior you are currently seeing is that fullscreen and/or maximized views are not really moved until a certain threshold is exceeded. This is controlled by move/enable_snap_off.

ammen99 avatar Oct 26 '23 11:10 ammen99

I set "snap_off_threshold = 0" in the [move] section of my wayfire.ini and now it works correctly. Thanks!

k9spud avatar Oct 26 '23 23:10 k9spud