all repos — openbox @ d59508ae910dc095e207910cbba301d79c4f5ef0

openbox fork - make it a bit more like ryudo

use the result from XGetGeometry correctly
Dana Jansens danakj@orodu.net
commit

d59508ae910dc095e207910cbba301d79c4f5ef0

parent

533992f5aae6804eb77b90f70bf032a09a373930

1 files changed, 4 insertions(+), 5 deletions(-)

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

@@ -203,7 +203,7 @@ static Window lwindow = None;

static int px, py; gboolean click = FALSE; gboolean dclick = FALSE; - + switch (e->type) { case ButtonPress: px = e->xbutton.x_root;

@@ -229,12 +229,11 @@ /* clicks are only valid if its released over the window */

int junk1, junk2; Window wjunk; guint ujunk, b, w, h; - Status s; xerror_set_ignore(TRUE); - s = XGetGeometry(ob_display, e->xbutton.window, - &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk); + junk1 = XGetGeometry(ob_display, e->xbutton.window, + &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk); xerror_set_ignore(FALSE); - if (s == Success) { + if (junk1) { if (e->xbutton.x >= (signed)-b && e->xbutton.y >= (signed)-b && e->xbutton.x < (signed)(w+b) &&