mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 18:45:47 +01:00
fixed crash bug with WM_CLASS==NULL
etc
This commit is contained in:
@@ -944,7 +944,7 @@ static void setRowSelected(WMTableView *table, unsigned row, Bool flag)
|
||||
}
|
||||
}
|
||||
if (repaint && row < table->rows) {
|
||||
//drawFullRow(table, row);
|
||||
/*drawFullRow(table, row);*/
|
||||
repaintTable(table);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ libWINGs_a_SOURCES = \
|
||||
wfont.c \
|
||||
wfontpanel.c \
|
||||
widgets.c \
|
||||
winputmethod.c \
|
||||
wlabel.c \
|
||||
wlist.c \
|
||||
wmenuitem.c \
|
||||
|
||||
@@ -132,6 +132,8 @@ typedef struct W_Screen {
|
||||
|
||||
RContext *rcontext;
|
||||
|
||||
struct W_IMContext *imctx;
|
||||
|
||||
/* application related */
|
||||
|
||||
W_FocusInfo *focusInfo;
|
||||
|
||||
@@ -617,6 +617,10 @@ WMCreateScreenWithRContext(Display *display, int screen, RContext *context)
|
||||
scrPtr->rootWin = RootWindow(display, screen);
|
||||
|
||||
scrPtr->fontCache = WMCreateHashTable(WMStringPointerHashCallbacks);
|
||||
|
||||
|
||||
/* create input method stuff */
|
||||
W_InitIMStuff(scrPtr);
|
||||
|
||||
/* Create missing CUT_BUFFERs */
|
||||
{
|
||||
|
||||
@@ -1259,7 +1259,7 @@ handleTextFieldKeyPress(TextField *tPtr, XEvent *event)
|
||||
normal_key:
|
||||
default:
|
||||
if (!controled) {
|
||||
if (count > 0 && isprint(buffer[0])) {
|
||||
if (count > 0 && !iscntrl(buffer[0])) {
|
||||
if (tPtr->selection.count)
|
||||
WMDeleteTextFieldRange(tPtr, tPtr->selection);
|
||||
WMInsertTextFieldText(tPtr, buffer, tPtr->cursorPosition);
|
||||
|
||||
Reference in New Issue
Block a user