wayland: only do pointer adjustments for (all subtypes)
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
503a259caa
commit
6541419007
1 changed files with 3 additions and 2 deletions
|
|
@ -762,8 +762,9 @@ static MwBool hit_detect(MwLL child, MwLL* _topmost_parent, MwPoint* _point, MwP
|
||||||
while(topmost_parent->wayland.parent) {
|
while(topmost_parent->wayland.parent) {
|
||||||
topmost_parent = topmost_parent->wayland.parent;
|
topmost_parent = topmost_parent->wayland.parent;
|
||||||
if(topmost_parent) {
|
if(topmost_parent) {
|
||||||
/* if the topmost parent is a popup/subwindow then its x/y is irrelevant to us. */
|
/* if the topmost parent is a popup/subwindow/layer surface then its x/y is irrelevant to us,
|
||||||
if(topmost_parent->wayland.type != MwLL_WAYLAND_POPUP && topmost_parent->wayland.type != MwLL_WAYLAND_TOPLEVEL) {
|
* it's the window's position on screen and pointer coordinates are relative to the window. */
|
||||||
|
if(topmost_parent->wayland.type == MwLL_WAYLAND_SUBLEVEL || topmost_parent->wayland.type == MwLL_WAYLAND_SUBSURFACE) {
|
||||||
absolute_pos.x += topmost_parent->wayland.x;
|
absolute_pos.x += topmost_parent->wayland.x;
|
||||||
absolute_pos.y += topmost_parent->wayland.y;
|
absolute_pos.y += topmost_parent->wayland.y;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue