pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
487 stars 90 forks source link

Windows can be dragged & dropped over extended panels (getting stuck behind them) #257

Open jacobgkau opened 10 months ago

jacobgkau commented 10 months ago

When tiling is disabled, if I drag and drop a window over the top panel, the panel automatically comes back to the forefront and the app ends up with its titlebar behind the panel. This makes it very difficult to move the window back out from behind the panel-- currently, it looks like the easiest workaround is to maximize the window with Super-M and then un-maximize it with the mouse so it can be dropped somewhere else.

I can see a case for having windows fall behind non-extended panels (e.g. being partially overlapped by a dock), but it doesn't seem like I should be able to drag a window behind an extended panel, at least at the top of the screen. On GNOME, the window stops moving up when it hits the top bar. On Windows, a window stops moving down or to the side when the mouse cursor hits the taskbar (which ensures that somewhere the mouse cursor can grab is still exposed).

Determining the expected behavior for this might need @pop-os/ux involvement. Multi-monitor support might be a consideration when it comes to placing any kind of barrier there.

WatchMkr commented 6 months ago

Floating tiling seems to have improved this by making it less likely a window is dropped where it can't be grabbed. It's still possible but hard to do.