Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views visible on multiple outputs #12

Closed
soreau opened this issue Jun 12, 2018 · 2 comments
Closed

Views visible on multiple outputs #12

soreau opened this issue Jun 12, 2018 · 2 comments

Comments

@soreau
Copy link
Member

soreau commented Jun 12, 2018

Currently, views are tied to outputs in such a way that makes it impossible to render view on more than one output at a time. This is mostly noticeable when dragging windows from one output to another, the window is cut off until it is on the other output.

@ammen99
Copy link
Member

ammen99 commented Jun 12, 2018

Having views float between outputs can be difficult because of the way wayfire handles output - they are almost completely independent - they have a separate set of workspaces, separate plugin instances(cube/expo), etc.

However, there is a way to solve this problem without breaking the current model:

  1. Make views maintain a list of their visible outputs. A view retains it's primary output, which is used for all workspace operations. The list of visible outputs is updated each time a view is moved, resized, or its transformation changed, and view's damage is applied to all outputs it is visible on

  2. A view is visible on a secondary output, if it is visible on its primary output, its geometry intersects the second output and the the second output doesn't have a custom renderer.

  3. If the user activates a view (for example by clicking on it) on an output which is different from the view's main output, then the view's primary output is updated to the output where the activity came from. There are a few things to decide here: Which "activities" would qualify as enough to change the view's output? Clicking on them certainly does, but what about switcher or workspace switching?

In this way, we can easily have multi-output windows which behave relatively well and integrate all plugins.

@ammen99
Copy link
Member

ammen99 commented Aug 8, 2018

Another idea that came from our IRC discussion: simply show some animation whenever a view is moved from one output to the other. Windows spanning over multiple outputs aren't that useful anyway

@ammen99 ammen99 added this to the 1.0-beta 1 milestone Aug 11, 2018
Kim-Dewelski pushed a commit to Kim-Dewelski/wayfire that referenced this issue Dec 15, 2023
background-view: Insert exec into command args to maintain pid across…
@killown killown mentioned this issue Feb 16, 2024
This was referenced Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants