diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-24 19:52:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-24 19:52:09 +0000 |
| commit | 436c85576e99f4df81273f8b510a94605e676cab (patch) | |
| tree | 2b0041e03f17153464575d89cd6cac9b44033aab /openbox | |
| parent | 2bdc37e9200bef650867d7b9b2a251327b922629 (diff) | |
only perform the actions necessary when performing an engine_adjust_area. pass whether the client has moved or resized
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 | ||||
| -rw-r--r-- | openbox/event.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/openbox/client.c b/openbox/client.c index 21c9ac7a..b717b914 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -822,7 +822,7 @@ void client_setup_decor_and_functions(Client *self) if (self->frame) { /* change the decors on the frame, and with more/less decorations, we may also need to be repositioned */ - engine_frame_adjust_area(self->frame); + engine_frame_adjust_area(self->frame, TRUE, TRUE); /* with new decor, the window's maximized size may change */ client_remaximize(self); } @@ -1390,7 +1390,7 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, /* move/resize the frame to match the request */ if (self->frame) { - engine_frame_adjust_area(self->frame); + engine_frame_adjust_area(self->frame, moved, resized); if (moved) { if (!user || final) { @@ -1630,7 +1630,7 @@ void client_shade(Client *self, gboolean shade) self->shaded = shade; client_change_state(self); /* resize the frame to just the titlebar */ - engine_frame_adjust_area(self->frame); + engine_frame_adjust_area(self->frame, FALSE, FALSE); } void client_close(Client *self) diff --git a/openbox/event.c b/openbox/event.c index 1844e3f6..4be03d94 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -275,8 +275,6 @@ void event_process(XEvent *e) xwc.sibling = e->xconfigurerequest.above; xwc.stack_mode = e->xconfigurerequest.detail; - g_message("Proxying configure event for 0x%lx", window); - /* we are not to be held responsible if someone sends us an invalid request! */ xerror_set_ignore(TRUE); @@ -323,6 +321,7 @@ static void event_handle_client(Client *client, XEvent *e) { XEvent ce; Atom msgtype; + int i=0; switch (e->type) { case FocusIn: @@ -330,10 +329,10 @@ static void event_handle_client(Client *client, XEvent *e) client_set_focused(client, e->type == FocusIn); break; case ConfigureRequest: - g_message("ConfigureRequest for window %lx", client->window); /* compress these */ while (XCheckTypedWindowEvent(ob_display, client->window, ConfigureRequest, &ce)) { + ++i; /* XXX if this causes bad things.. we can compress config req's with the same mask. */ e->xconfigurerequest.value_mask |= @@ -352,6 +351,7 @@ static void event_handle_client(Client *client, XEvent *e) if (ce.xconfigurerequest.value_mask & CWStackMode) e->xconfigurerequest.detail = ce.xconfigurerequest.detail; } + if (i) g_message("Compressed %d Configures", i); /* if we are iconic (or shaded (fvwm does this)) ignore the event */ if (client->iconic || client->shaded) return; |
