mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-12 03:35:52 +01:00
Fixed a crashing bug related to textfield selections, and reordered the
items in the textfield delegate structure to be grouped togheter based on their meaning.
This commit is contained in:
@@ -435,12 +435,12 @@ typedef struct WMBrowserDelegate {
|
||||
typedef struct WMTextFieldDelegate {
|
||||
void *data;
|
||||
|
||||
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
|
||||
WMNotification *notif);
|
||||
|
||||
void (*didChange)(struct WMTextFieldDelegate *self,
|
||||
WMNotification *notif);
|
||||
|
||||
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
|
||||
WMNotification *notif);
|
||||
|
||||
void (*didEndEditing)(struct WMTextFieldDelegate *self,
|
||||
WMNotification *notif);
|
||||
|
||||
|
||||
@@ -230,7 +230,8 @@ requestHandler(WMWidget *w, Atom selection, Atom target, Atom *type,
|
||||
static void
|
||||
lostHandler(WMWidget *w, Atom selection)
|
||||
{
|
||||
TextField *tPtr;
|
||||
TextField *tPtr = (WMTextField*)w;
|
||||
|
||||
tPtr->selection.count = 0;
|
||||
paintTextField(tPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user