all repos — openbox @ e84fb1b052584b83947715d8ae4ec5d8afd201e7

openbox fork - make it a bit more like ryudo

drop the DoNotPropogate thing. metacity doesn't set it at all, and i cant tell any difference in the events generated without it.
grab mouse buttons on the client window itself for client bindings. this fixes the weird "click and drag doesnt work when the window is focused" behavior ive been seeing with kdesktop. hooray !
Dana Jansens danakj@orodu.net
commit

e84fb1b052584b83947715d8ae4ec5d8afd201e7

parent

31e6e12c495a343705733fa5abe8c63a1af646bf

2 files changed, 2 insertions(+), 4 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -262,9 +262,7 @@ ob_debug("Managing window: %lx\n", window);

/* choose the events we want to receive on the CLIENT window */ attrib_set.event_mask = CLIENT_EVENTMASK; - attrib_set.do_not_propagate_mask = CLIENT_NOPROPAGATEMASK; - XChangeWindowAttributes(ob_display, window, - CWEventMask|CWDontPropagate, &attrib_set); + XChangeWindowAttributes(ob_display, window, CWEventMask, &attrib_set); /* create the ObClient struct, and populate it from the hints on the
M openbox/mouse.copenbox/mouse.c

@@ -108,7 +108,7 @@ win = client->frame->window;

mode = GrabModeAsync; mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask; } else if (CLIENT_CONTEXT(i, client)) { - win = client->frame->plate; + win = client->window; mode = GrabModeSync; /* this is handled in event */ mask = ButtonPressMask; /* can't catch more than this with Sync mode the release event is