diff options
author | Gabriel Diaz <gdiaz@qswarm.com> | 2020-05-18 17:38:16 +0200 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-18 17:07:25 -0400 |
commit | 84167be4ad170c879db48493438f507c2d40d28d (patch) | |
tree | 064010ed39d1ee110827c484811d0928a5f214dd /src/cmd | |
parent | c53ad837a734f7570badcb3666ccb3604e7e6467 (diff) | |
download | plan9port-84167be4ad170c879db48493438f507c2d40d28d.tar.gz plan9port-84167be4ad170c879db48493438f507c2d40d28d.tar.bz2 plan9port-84167be4ad170c879db48493438f507c2d40d28d.zip |
devdraw: use indirect impl interface in x11
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/x11-screen.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cmd/devdraw/x11-screen.c b/src/cmd/devdraw/x11-screen.c index 62f49f2f..0bbc25d6 100644 --- a/src/cmd/devdraw/x11-screen.c +++ b/src/cmd/devdraw/x11-screen.c @@ -40,6 +40,26 @@ static void _xmovewindow(Xwin *w, Rectangle r); static int _xtoplan9kbd(XEvent *e); static int _xselect(XEvent *e); +static void rpc_resizeimg(Client*); +static void rpc_resizewindow(Client*, Rectangle); +static void rpc_setcursor(Client*, Cursor*, Cursor2*); +static void rpc_setlabel(Client*, char*); +static void rpc_setmouse(Client*, Point); +static void rpc_topwin(Client*); +static void rpc_bouncemouse(Client*, Mouse); +static void rpc_flush(Client*, Rectangle); + +static ClientImpl x11impl = { + rpc_resizeimg, + rpc_resizewindow, + rpc_setcursor, + rpc_setlabel, + rpc_setmouse, + rpc_topwin, + rpc_bouncemouse, + rpc_flush +}; + static Xwin* newxwin(Client *c) { @@ -51,6 +71,7 @@ newxwin(Client *c) w->client = c; w->next = _x.windows; _x.windows = w; + c->impl = &x11impl; c->view = w; return w; } |