rhysd / Mstdn

Tiny web-based mastodon client for your desktop
MIT License
389 stars 15 forks source link

Window disappears when it loses focus #29

Closed AloisMahdal closed 7 years ago

AloisMahdal commented 7 years ago

When i run ./Mstdn in i3 4.13-113-gd3901fe, the window disappears as soon as focus is lost. The process still runs, just the window is lost so I have to kill the process manually.

This does not happen if I set normal_window to true or if I set NODE_ENV the way README suggests.

I haven't found any useful info printed to stdout/stderr or under ~/.local or similar place.

rhysd commented 7 years ago

It's expected behavior. If normal_window is set to false, this app behave as 'menubar window' mode. Menu items are hidden when losing its focus (e.g. click WiFi icon in menu bar). 'menubar window' mode follows this behavior.

rhysd commented 7 years ago

If you want to set window visible always, please set always_on_top to true.

AloisMahdal commented 7 years ago

Well, a bit strange for a default setting. I guess in this mode I can only access Mstdn by clicking the tray icon (which I did not notice until after your explanation).

always_on_top works fine, though.

rhysd commented 7 years ago

I'll close this because always_on_top works and I added more description to README