summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-02-16 10:51:25 +0000
committersabetts <sabetts>2002-02-16 10:51:25 +0000
commit0ffaa2d7743832871d966190f67145651829493f (patch)
tree48a09ebef46ef202fd4cdac1ce1cdf832708fb2d /src/manage.c
parent77ed579271333781b9a97bbfc901795080c0ca16 (diff)
downloadratpoison-0ffaa2d7743832871d966190f67145651829493f.zip
* src/manage.c (maximize): remove calls to XSelectInput.
(force_maximize): likewise (unhide_window): likewise (unhide_window_below): likewise * src/events.c (configure_notify): remove function. (configure_request): grant the request, then immediately maximize the window. (delegate_event): ignore ConfigureNotify events. (configure_request): grant the request if ratpoison isn't managing the window.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/manage.c b/src/manage.c
index 1d941b2..12699d7 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -588,12 +588,9 @@ maximize (rp_window *win)
win->x, win->y, win->width, win->height);
- /* Actually do the maximizing, and ignore the event created by the
- maximizing. */
- XSelectInput (dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
+ /* Actually do the maximizing. */
XMoveResizeWindow (dpy, win->w, win->x, win->y, win->width, win->height);
XSetWindowBorderWidth (dpy, win->w, win->border);
- XSelectInput (dpy, win->w, WIN_EVENTS);
XSync (dpy, False);
}
@@ -611,9 +608,6 @@ force_maximize (rp_window *win)
/* Reposition the window. */
move_window (win);
- /* Don't listen to the events caused by the maximize. */
- XSelectInput (dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
-
/* This little dance is to force a maximize event. If the window is
already "maximized" X11 will optimize away the event since to
geometry changes were made. This initial resize solves the
@@ -633,7 +627,6 @@ force_maximize (rp_window *win)
XMoveResizeWindow (dpy, win->w, win->x, win->y, win->width, win->height);
XSetWindowBorderWidth (dpy, win->w, win->border);
- XSelectInput (dpy, win->w, WIN_EVENTS);
XSync (dpy, False);
}
@@ -682,10 +675,7 @@ hide_window (rp_window *win)
/* An unmapped window is not inside a frame. */
win->frame = NULL;
- /* Ignore the unmap_notify event. */
- XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XUnmapWindow (dpy, win->w);
- XSelectInput (dpy, win->w, WIN_EVENTS);
set_state (win, IconicState);
}
@@ -694,17 +684,12 @@ unhide_window (rp_window *win)
{
if (win == NULL) return;
- /* Always raise the window. But ignore notify event. */
- XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
+ /* Always raise the window. */
XRaiseWindow (dpy, win->w);
- XSelectInput (dpy, win->w, WIN_EVENTS);
if (win->state != IconicState) return;
- /* Ignore the notify event. */
- XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XMapWindow (dpy, win->w);
- XSelectInput (dpy, win->w, WIN_EVENTS);
set_state (win, NormalState);
}
@@ -721,10 +706,7 @@ unhide_window_below (rp_window *win)
if (win->state != IconicState) return;
- /* Ignore the event caused by the window mapping. */
- XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XMapWindow (dpy, win->w);
- XSelectInput (dpy, win->w, WIN_EVENTS);
set_state (win, NormalState);
}