This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit dee8d4f36925f66f63925726b542289b18bef273
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Jul 22 06:33:52 2022 +0200

    edge: Prevent pointer click and motion events propagating to root
    
    Avoids activating desk flips, root menus, and root window tooltips when
    clicking on or moving over the edge windows.
---
 src/edge.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/edge.c b/src/edge.c
index a9002e77..23f9a114 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -187,10 +187,14 @@ EdgeWindowCreate(int which, int x, int y, int w, int h)
 {
    static const char  *const names[] =
       { "Edge-L", "Edge-R", "Edge-T", "Edge-B" };
+   XSetWindowAttributes att;
    EObj               *eo;
 
    eo = EobjWindowCreate(EOBJ_TYPE_EVENT, x, y, w, h, 0, names[which & 3]);
    ESelectInput(EobjGetWin(eo), EnterWindowMask | LeaveWindowMask);
+   att.do_not_propagate_mask =
+      ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
+   EChangeWindowAttributes(EobjGetWin(eo), CWDontPropagate, &att);
    EventCallbackRegister(EobjGetWin(eo), EdgeHandleEvents, INT2PTR(which));
 
    return eo;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to