Revert "Merge pull request #34 from phillbush/localize-2"

This reverts commit b9e7c7313d, reversing
changes made to 774f98ef87.

It broke ToolItem input; will need to dig into this a bit more.
This commit is contained in:
Adrian Chadd
2026-02-28 12:16:16 -08:00
parent b9e7c7313d
commit 1f685e250a
6 changed files with 215 additions and 213 deletions

View File

@@ -418,38 +418,3 @@ Scrn *getscreenbyroot(Window w)
{
return getscreenbyrootext(w, 0);
}
void click_screendepth(Scrn *s, Time time)
{
extern void redrawmenubar(Scrn *, Window);
extern void get_drag_event(XEvent *event);
extern Scrn *mbdclick;
int status;
XSync(dpy, False);
status = XGrabPointer(dpy, s->menubardepth, True, ButtonPressMask|ButtonReleaseMask,
GrabModeAsync, GrabModeAsync, False, None, time);
if (status != AlreadyGrabbed && status != GrabSuccess)
return;
mbdclick = s;
redrawmenubar(s, s->menubardepth);
for (;;) {
XEvent event;
get_drag_event(&event);
if (event.type == ButtonRelease || event.type == ButtonPress) {
mbdclick = NULL;
redrawmenubar(s, s->menubardepth);
XUngrabPointer(dpy, event.xbutton.time);
if (event.type == ButtonPress)
return;
if (event.xbutton.x < 0 || event.xbutton.y < 0)
return; /* pointer to left/top of button */
if (event.xbutton.x >= 23 || event.xbutton.y >= s->bh)
return; /* pointer to right/bottom of button */
if(event.xbutton.window == s->menubardepth)
screentoback();
return;
}
}
}