Skip to content

Commit

Permalink
Fix the Xatom warnings issue in Issue 610
Browse files Browse the repository at this point in the history
Simply don't expect there to be an atom if the incoming event
is not a PropertyNotify.
  • Loading branch information
rainwoodman committed Jun 19, 2010
1 parent c8f42da commit 9ab0fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsettings/settings.vala
Expand Up @@ -47,9 +47,9 @@ public class Gnomenu.Settings : Object {
}
[CCode (instance_pos = -1)]
private Gdk.FilterReturn real_event_filter(X.Event* xevent, Gdk.Event event) {
Gdk.Atom atom_in = Gdk.x11_xatom_to_atom(xevent->xproperty.atom);
switch(xevent->type) {
case X.EventType.PropertyNotify:
Gdk.Atom atom_in = Gdk.x11_xatom_to_atom(xevent->xproperty.atom);
if(atom_equal(atom, atom_in)) {
pull();
}
Expand Down

0 comments on commit 9ab0fa8

Please sign in to comment.