Initialize all fields of GdkEvents in nsClipboard.cpp.
This commit is contained in:
parent
92a7a7ab89
commit
d51255bf28
|
@ -806,7 +806,7 @@ void GetHTMLCharset(guchar * data, int32_t dataLength, nsCString& str)
|
|||
static void
|
||||
DispatchSelectionNotifyEvent(GtkWidget *widget, XEvent *xevent)
|
||||
{
|
||||
GdkEvent event;
|
||||
GdkEvent event = {};
|
||||
event.selection.type = GDK_SELECTION_NOTIFY;
|
||||
event.selection.window = gtk_widget_get_window(widget);
|
||||
event.selection.selection = gdk_x11_xatom_to_atom(xevent->xselection.selection);
|
||||
|
@ -822,7 +822,7 @@ DispatchPropertyNotifyEvent(GtkWidget *widget, XEvent *xevent)
|
|||
{
|
||||
GdkWindow *window = gtk_widget_get_window(widget);
|
||||
if ((gdk_window_get_events(window)) & GDK_PROPERTY_CHANGE_MASK) {
|
||||
GdkEvent event;
|
||||
GdkEvent event = {};
|
||||
event.property.type = GDK_PROPERTY_NOTIFY;
|
||||
event.property.window = window;
|
||||
event.property.atom = gdk_x11_xatom_to_atom(xevent->xproperty.atom);
|
||||
|
|
Loading…
Reference in New Issue