From 9005a02c5c4355ca18c1d070072bb9fbe0f2c040 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 30 Jul 2007 01:47:13 -0400 Subject: [PATCH] don't propagate mouse button events on dock windows thru to the root window --- openbox/dock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbox/dock.c b/openbox/dock.c index 990c8208..36b08b06 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -30,6 +30,8 @@ #define DOCK_EVENT_MASK (ButtonPressMask | ButtonReleaseMask | \ EnterWindowMask | LeaveWindowMask) #define DOCKAPP_EVENT_MASK (StructureNotifyMask) +#define DOCK_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \ + ButtonMotionMask) static ObDock *dock; @@ -83,11 +85,13 @@ void dock_startup(gboolean reconfig) attrib.event_mask = DOCK_EVENT_MASK; attrib.override_redirect = True; + attrib.do_not_propagate_mask = DOCK_NOPROPAGATEMASK; dock->frame = XCreateWindow(ob_display, RootWindow(ob_display, ob_screen), 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), - CWOverrideRedirect | CWEventMask, + CWOverrideRedirect | CWEventMask | + CWDontPropagate, &attrib); dock->a_frame = RrAppearanceCopy(ob_rr_theme->osd_hilite_bg); XSetWindowBorder(ob_display, dock->frame, -- 2.45.2