add comment, and reformat

This commit is contained in:
Dana Jansens 2003-01-23 12:13:11 +00:00
parent 8d4fe416e5
commit 9583bb6cb8

View file

@ -405,8 +405,7 @@ void Frame::adjustState()
void Frame::grabClient() void Frame::grabClient()
{ {
// reparent the client to the frame // reparent the client to the frame
XReparentWindow(**otk::display, _client->window(), XReparentWindow(**otk::display, _client->window(), _plate.window(), 0, 0);
_plate.window(), 0, 0);
/* /*
When reparenting the client window, it is usually not mapped yet, since When reparenting the client window, it is usually not mapped yet, since
this occurs from a MapRequest. However, in the case where Openbox is this occurs from a MapRequest. However, in the case where Openbox is
@ -418,9 +417,8 @@ void Frame::grabClient()
if (openbox->state() == Openbox::State_Starting) if (openbox->state() == Openbox::State_Starting)
_client->ignore_unmaps += 2; _client->ignore_unmaps += 2;
// select the event mask on the client's parent (to receive config req's) // select the event mask on the client's parent (to receive config/map req's)
XSelectInput(**otk::display, _plate.window(), XSelectInput(**otk::display, _plate.window(), SubstructureRedirectMask);
SubstructureRedirectMask);
// map the client so it maps when the frame does // map the client so it maps when the frame does
XMapWindow(**otk::display, _client->window()); XMapWindow(**otk::display, _client->window());