Sway: Surface contents can be rendered outside the borders after a resize

Created on 30 Oct 2018  路  8Comments  路  Source: swaywm/sway

QEMU is underlapping other windows. See below for example.

out

Version:

sway version 1.0-beta.1-108-gb90af335 (Oct 29 2018, branch 'master')

Steps to produce:

  1. Start Sway
  2. Launch two terminals and QEMU (supply a cdrom and wait for it to begin booting for the window to underlap)
  3. Move one terminal to the left of QEMU and one to the right
  4. Observe that QEMU underlaps the rightmost terminal, though this is only visible if your terminal is configured to be transparent

This issue might not be with Sway or wlroots, so please confirm.

bug

Most helpful comment

Is your terminal transparent?

In the description:

though this is only visible if your terminal is configured to be transparent

Maybe we should scissor tiled views to their container's bound (excluding popups).

All 8 comments

Is your terminal transparent?

Yes, it is.

Is your terminal transparent?

In the description:

though this is only visible if your terminal is configured to be transparent

Maybe we should scissor tiled views to their container's bound (excluding popups).

In the description

:wink:

Maybe we should scissor tiled views to their container's bound (excluding popups).

Maybe. In my opinion this is working as designed.

A similar thing happens with gnome-calculator when you have swaybar at the bottom and gnome-calculator doesn't have enough space to fit its minimum surface height. It overlaps swaybar. For example, create layout V[view view gnome-calculator].

@RedSoxFan FYI this is still reproducible after your patch.

020734-16-03-2019

@RedSoxFan FYI this is still reproducible after your patch.

I only touched floating clients. Nothing has been changed regarding tiling ones, which is why this remains opens.

I can reproduce a similar issue by setting outer gaps and then opening several gnome-terminal windows. At some point gnome-terminal stops reducing in size and so the last window becomes out of bounds:

gnometerminal_outofbounds

It's an extreme situation but the behavior does look incorrect.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emersion picture emersion  路  4Comments

StephenBrown2 picture StephenBrown2  路  4Comments

Alphare picture Alphare  路  3Comments

emersion picture emersion  路  4Comments

cauebs picture cauebs  路  3Comments