Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Keep clients in their own boxes #34

Closed
wants to merge 1 commit into from
Closed

Keep clients in their own boxes #34

wants to merge 1 commit into from

Conversation

djpohly
Copy link
Owner

@djpohly djpohly commented Aug 4, 2020

Clients have no business drawing over top of others - it's a security risk and bad for invariants.

clients have no business drawing over top of others - it's a security
risk and bad for invariants.
pg.y = c->surface.xwayland->parent->y;
pg.width = c->surface.xwayland->parent->width;
pg.height = c->surface.xwayland->parent->height;
wlr_renderer_scissor(drw, &pg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox and IntelliJ menus follow this branch and are indeed restricted to the parent window.

Chromium menus and IntelliJ windows follow the other branch and are free to render outside the parent.

}

void
renderindependents(struct wlr_output *output, struct timespec *now)
{
Client *c;
struct render_data rdata;
struct wlr_box geom;
struct wlr_box geom, pg;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/nit naming consistency

Perhaps pgeom or rename geom to g.

@alex-courtis
Copy link
Contributor

This change is technically sound, pending fixes for chromium/intellij behaviour.

I'm not sure that this change will result in a good user experience: cutting off menus etc. will make tiled/floating applications difficult to use.

Perhaps this one should be an option in the config: it's baked too deep for a patch, and will be relevant for the majority of users.

@djpohly
Copy link
Owner Author

djpohly commented Aug 4, 2020

Yeah, I just wanted to hack this up for some testing. I do really think clients should be kept in their own space, with perhaps a small number of well-defined exceptions. (I particularly don't like giving X11 clients free rein of my Wayland screen just because "they don't know better." It's like the neighbors trying to excuse their dog for pooping in your flowerbed because they think fences are bad UX.)

Base automatically changed from master to main February 16, 2021 19:18
@sevz17
Copy link
Collaborator

sevz17 commented Mar 21, 2022

This pr does not longer applies

@sevz17 sevz17 closed this Mar 21, 2022
@sevz17 sevz17 deleted the scissor branch December 6, 2022 02:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants