mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 23:57:31 +09:00
Initialize all fields of GdkEvents in nsClipboard.cpp
This commit is contained in:
parent
5a102074d1
commit
72e5396dfa
1 changed files with 2 additions and 2 deletions
|
|
@ -806,7 +806,7 @@ void GetHTMLCharset(guchar * data, int32_t dataLength, nsCString& str)
|
||||||
static void
|
static void
|
||||||
DispatchSelectionNotifyEvent(GtkWidget *widget, XEvent *xevent)
|
DispatchSelectionNotifyEvent(GtkWidget *widget, XEvent *xevent)
|
||||||
{
|
{
|
||||||
GdkEvent event;
|
GdkEvent event = {};
|
||||||
event.selection.type = GDK_SELECTION_NOTIFY;
|
event.selection.type = GDK_SELECTION_NOTIFY;
|
||||||
event.selection.window = gtk_widget_get_window(widget);
|
event.selection.window = gtk_widget_get_window(widget);
|
||||||
event.selection.selection = gdk_x11_xatom_to_atom(xevent->xselection.selection);
|
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);
|
GdkWindow *window = gtk_widget_get_window(widget);
|
||||||
if ((gdk_window_get_events(window)) & GDK_PROPERTY_CHANGE_MASK) {
|
if ((gdk_window_get_events(window)) & GDK_PROPERTY_CHANGE_MASK) {
|
||||||
GdkEvent event;
|
GdkEvent event = {};
|
||||||
event.property.type = GDK_PROPERTY_NOTIFY;
|
event.property.type = GDK_PROPERTY_NOTIFY;
|
||||||
event.property.window = window;
|
event.property.window = window;
|
||||||
event.property.atom = gdk_x11_xatom_to_atom(xevent->xproperty.atom);
|
event.property.atom = gdk_x11_xatom_to_atom(xevent->xproperty.atom);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue