diff --git a/lib/window.vala b/lib/window.vala index 2237043..3c370c9 100644 --- a/lib/window.vala +++ b/lib/window.vala @@ -138,6 +138,7 @@ namespace Xnp { } set { this._above = value; + debug ("set above: %d", (int)value); set_keep_above (value); } } @@ -527,6 +528,7 @@ namespace Xnp { /* FIXME above state is never notified despit * of xfwm4 switching the state */ this.mi_above.active = (bool)(event.new_window_state & Gdk.WindowState.ABOVE); + debug ("window state event: %d", (int)this.mi_above.active); } if ((bool)(event.changed_mask & Gdk.WindowState.STICKY) && (bool)(get_flags () & Gtk.WidgetFlags.VISIBLE)) { @@ -736,7 +738,10 @@ namespace Xnp { mi = this.mi_above = new Gtk.CheckMenuItem.with_label (_("Always on top")); ((Gtk.CheckMenuItem)mi).active = this.above; - ((Gtk.CheckMenuItem)mi).toggled += (o) => { above = o.active; }; + ((Gtk.CheckMenuItem)mi).toggled += (o) => { + above = o.active; + debug ("mi above toggled: %d", (int)above); + }; menu.append (mi); mi = this.mi_sticky = new Gtk.CheckMenuItem.with_label (_("Sticky window"));