summaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-27 23:21:00 +0000
committersabetts <sabetts>2000-08-27 23:21:00 +0000
commit98a3dea008502975d0b4958a8dc2c4f37bfa6b80 (patch)
treeec6b94f9b93632859e314bb12f544ae01f413000 /manage.c
parent2f020a0d37e9bfb0b8ebc40062622ae4f200e4a1 (diff)
downloadratpoison-98a3dea008502975d0b4958a8dc2c4f37bfa6b80.zip
integrated the number sources. windows now keep the number they're
given.
Diffstat (limited to 'manage.c')
-rw-r--r--manage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/manage.c b/manage.c
index 2ed6af9..04ce0ad 100644
--- a/manage.c
+++ b/manage.c
@@ -130,7 +130,9 @@ manage (rp_window *win, screen_info *s)
XSelectInput (dpy, win->w, PropertyChangeMask);
XAddToSaveSet(dpy, win->w);
grab_prefix_key (win->w);
+
win->state = STATE_MAPPED;
+ win->number = get_unique_window_number ();
#ifdef DEBUG
printf ("window '%s' managed.\n", win->name);
@@ -140,7 +142,9 @@ manage (rp_window *win, screen_info *s)
void
unmanage (rp_window *w)
{
+ return_window_number (w->number);
remove_from_window_list (w);
+ last_window ();
}
/* When starting up scan existing windows and start managing them. */