Attempt to fix right-click user windows

This commit is contained in:
2026-01-31 15:38:02 +00:00
parent 8fe4df8fb0
commit ff3f1fc97a
2 changed files with 7 additions and 4 deletions

View File

@@ -45,6 +45,8 @@ var clientroot *xmpp.Client
var uiQueue = make(chan func(), 100)
var window *gtk.ApplicationWindow
// stores members of mucs
var mucmembers sync.Map
@@ -243,7 +245,7 @@ func main() {
b := gtk.NewButtonWithLabel(user)
b.ConnectClicked(func() {
b.AddCSSClass("accent")
switchToTab(user)
switchToTab(user, &window.Window)
})
menu.Append(b)
}
@@ -308,7 +310,7 @@ func activate(app *gtk.Application) {
gtk.STYLE_PROVIDER_PRIORITY_APPLICATION,
)
window := gtk.NewApplicationWindow(app)
window = gtk.NewApplicationWindow(app)
app.SetMenubar(gio.NewMenu())
window.SetTitle("Lambda")
@@ -436,7 +438,7 @@ func activate(app *gtk.Application) {
b := gtk.NewButtonWithLabel(t)
b.ConnectClicked(func() {
b.AddCSSClass("accent")
switchToTab(t)
switchToTab(t, &window.Window)
})
menu.Append(b)
}