mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-02 14:15:46 +01:00
changed indentation to use spaces only
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
typedef struct W_IMContext {
|
||||
XIM xim;
|
||||
|
||||
|
||||
struct W_ICContext *icList;
|
||||
} WMIMContext;
|
||||
|
||||
@@ -17,7 +17,7 @@ typedef struct W_ICContext {
|
||||
struct W_ICContext *next;
|
||||
struct W_ICContext *prev;
|
||||
|
||||
XIC xic;
|
||||
XIC xic;
|
||||
} WMICContext;
|
||||
|
||||
|
||||
@@ -26,27 +26,27 @@ Bool
|
||||
W_InitIMStuff(WMScreen *scr)
|
||||
{
|
||||
WMIMContext *ctx;
|
||||
|
||||
|
||||
ctx = scr->imctx = wmalloc(sizeof(WMIMContext));
|
||||
|
||||
|
||||
ctx->xim = XOpenIM(scr->display, NULL, NULL, NULL);
|
||||
if (ctx->xim == NULL) {
|
||||
wwarning("could not open IM");
|
||||
return False;
|
||||
wwarning("could not open IM");
|
||||
return False;
|
||||
}
|
||||
|
||||
// XGetIMValues(scr->display,
|
||||
|
||||
//XGetIMValues(scr->display,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
W_CloseIMStuff(WMScreen *scr)
|
||||
{
|
||||
if (!scr->imctx)
|
||||
return;
|
||||
if (!scr->imctx)
|
||||
return;
|
||||
|
||||
if (scr->imctx->xim)
|
||||
XCloseIM(scr->imctx->xim);
|
||||
XCloseIM(scr->imctx->xim);
|
||||
wfree(scr->imctx);
|
||||
scr->imctx = NULL;
|
||||
}
|
||||
@@ -58,11 +58,11 @@ W_CreateIC(WMView *view)
|
||||
{
|
||||
WMScreen *scr = W_VIEW_SCREEN(view);
|
||||
WMICContext *ctx;
|
||||
|
||||
|
||||
ctx->prev = NULL;
|
||||
ctx->next = scr->imctx->icList;
|
||||
if (scr->imctx->icList)
|
||||
scr->imctx->icList->prev = ctx;
|
||||
scr->imctx->icList->prev = ctx;
|
||||
//scr->imctx = ctx;
|
||||
}
|
||||
|
||||
@@ -71,8 +71,8 @@ void
|
||||
W_DestroyIC(WMICContext *ctx)
|
||||
{
|
||||
XDestroyIC(ctx->xic);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ int
|
||||
W_LookupString(WMView *view, XKeyEvent *event,
|
||||
char buffer, int bufsize, KeySym ksym)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user