-
Notifications
You must be signed in to change notification settings - Fork 341
Conversation
Is there another way to get the subsurface position relative to its parent? |
Yes, this will be moved in |
ca7df31
to
b90842a
Compare
include/wlr/types/wlr_surface.h
Outdated
enum wlr_surface_state_field { | ||
WLR_SURFACE_STATE_BUFFER = 1, | ||
WLR_SURFACE_STATE_SURFACE_DAMAGE = 2, | ||
WLR_SURFACE_STATE_BUFFER_DAMAGE = 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be 4
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks!
9de257f
to
1fec7cf
Compare
I'm not really happy with the current |
Still not sure how damage should be defined.
|
@emersion, as we're doing the |
It should be buffer local. |
I'm not trying to argue, just asking out of interest: what makes you think this way? |
Can we just go with "it's been a long day and explaining the full answer is beyond the limits of my patience right now"? |
6aa8ff5
to
ce5334f
Compare
Moved bits that are computed as a delta of two states (the enhanced damage, the surface position, the buffer itself) outside of Decided to use damage in buffer-local coordinates, so that you can apply scale and transform to this region in the exact same way you render the associated texture. |
ce5334f
to
179febc
Compare
So, after this, what is the intended solution for #1065? |
Let's continue to discuss this in the other issue. |
Code looks good, running this as my daily driver for a while. |
Pointer position is still off after applying this and the sway update PR. Do you compensate for scaling? |
Input doesn't deal with scaling and transform. Can you describe how to reproduce? Are you sure you're running with the latest version of this branch? (A previous commit fucked up the input region) |
Yep, this is with the latest version of this PR. There's no transform on anything, just scaling set in sway. |
FYI I have input issues with some floating windows on Sway master (without this patch applied): swaywm/sway#2195 |
Ah, so this is not a regression: this is a bug also there on master? How big is this offset? |
In GTK - a few pixels (3 or 4) upwards and a pixel or two to the left of where the menu is created. |
I think this is more of a xdg-shell window geometry issue (this PR only updates the wl_surface implementation). |
179ac58
to
daaaa80
Compare
These can be set to e.g. regions larger than the surface. If the surface resizes itself, it doesn't need to set again these regions.
c0d476b
to
4c9805f
Compare
4c9805f
to
515d682
Compare
Bump: I've been using this for a few days. |
aight |
invalid
tocommitted
- better ideas welcome!subsurface_position
inwlr_subsurface
sx
/sy
handlingsurface_damage
andbuffer_damage
- add a new buffer damage region insteadcurrent
andpending
embedded structsprevious
stateTest plan:
See #1065