summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsClipboard.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-06 15:08:10 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-06 15:08:10 +0100
commitd558cf6647406bdbb87c852772ad211670eff223 (patch)
treee1bdac9f78b1a43d5f1a79c278b7646946922f11 /widget/gtk/nsClipboard.cpp
parente287979b3eedb2c67a3c6da2991fdb56a4d35742 (diff)
downloadUXP-d558cf6647406bdbb87c852772ad211670eff223.tar
UXP-d558cf6647406bdbb87c852772ad211670eff223.tar.gz
UXP-d558cf6647406bdbb87c852772ad211670eff223.tar.lz
UXP-d558cf6647406bdbb87c852772ad211670eff223.tar.xz
UXP-d558cf6647406bdbb87c852772ad211670eff223.zip
Initialize all fields of GdkEvents in nsClipboard.cpp
Diffstat (limited to 'widget/gtk/nsClipboard.cpp')
-rw-r--r--widget/gtk/nsClipboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/gtk/nsClipboard.cpp b/widget/gtk/nsClipboard.cpp
index eecae3e88..950be1dc4 100644
--- a/widget/gtk/nsClipboard.cpp
+++ b/widget/gtk/nsClipboard.cpp
@@ -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);