diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-17 01:47:20 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-17 01:47:20 +0000 |
| commit | 432ac0983e058133e03885171f266dc4ba07f488 (patch) | |
| tree | 960e5f90cc78632b24712c0f0be7b18dc402d331 /engines/openbox | |
| parent | 9a3459e983a11d74ec9f5dc415ce0af551c4b74e (diff) | |
give engines mouse event notifications. make the openbox engine display pressed buttons
Diffstat (limited to 'engines/openbox')
| -rw-r--r-- | engines/openbox/openbox.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/engines/openbox/openbox.c b/engines/openbox/openbox.c index 8f101917..f92f46a2 100644 --- a/engines/openbox/openbox.c +++ b/engines/openbox/openbox.c @@ -865,3 +865,51 @@ GQuark get_context(Client *client, Window win) return g_quark_try_string("none"); } + +void frame_mouse_enter(ObFrame *self, Window win) +{ +} + +void frame_mouse_leave(ObFrame *self, Window win) +{ +} + +void frame_mouse_press(ObFrame *self, Window win, int x, int y) +{ + if (win == self->max) { + self->max_press = TRUE; + render_max(self); + } + else if (win == self->close) { + self->close_press = TRUE; + render_close(self); + } + else if (win == self->iconify) { + self->iconify_press = TRUE; + render_iconify(self); + } + else if (win == self->desk) { + self->desk_press = TRUE; + render_desk(self); + } +} + +void frame_mouse_release(ObFrame *self, Window win, int x, int y) +{ + if (win == self->max) { + self->max_press = FALSE; + render_max(self); + } + else if (win == self->close) { + self->close_press = FALSE; + render_close(self); + } + else if (win == self->iconify) { + self->iconify_press = FALSE; + render_iconify(self); + } + else if (win == self->desk) { + self->desk_press = FALSE; + render_desk(self); + } +} |
