PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Drag and drop windows while navigating

Open hedning opened this issue 5 years ago • 0 comments

Mutter's window grab blocks all other input, but it's possible to deactivate a grab from js.

So to make navigation while dragging work we implement the whole process using clone's and clutter events. The native grab-op-begin signal is only used to initiate a grab (we can't listen to arbitrary button events on WindowActors) which we immediately cancel in favor of the before mentioned implementation.

In addition to navigation while grabbing, we now support <super><ctrl>button-press as a shortcut to go straight into DnD mode. This can be very handy when you want to move a floating window into the tiling.

hedning avatar Mar 08 '20 13:03 hedning