Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please make far2l remember its window position and size (and restore them on restart) #46

Closed
unxed opened this issue Sep 8, 2016 · 7 comments

Comments

@unxed
Copy link
Contributor

unxed commented Sep 8, 2016

No description provided.

@invy
Copy link
Contributor

invy commented Sep 8, 2016

Duplicate of #16 ?

@unxed
Copy link
Contributor Author

unxed commented Sep 18, 2016

#16 is not about window position, it's about window size only

@invy
Copy link
Contributor

invy commented Sep 19, 2016

Maybe this should be handled by wm?

@unxed
Copy link
Contributor Author

unxed commented Sep 20, 2016

Maybe this should be handled by wm?

Not sure about the right way to handle it, so please close this issue if you think this is not far's problem.

@unxed
Copy link
Contributor Author

unxed commented Oct 19, 2016

from https://github.com/mate-desktop/marco

Q: Why does Marco remember the workspace/position of some apps
but not others across logout/login?

A: Marco only stores sizes/positions for apps that are session
managed. As far as I can determine, there is no way to attempt to
remember workspace/position for non-session-aware apps without
causing a lot of weird effects.

The reason is that you don't know which non-SM-aware apps were
launched by the session. When you initially log in, Marco sees a
bunch of new windows appear. But it can't distinguish between
windows that were stored in your session, or windows you just
launched after logging in. If Marco tried to guess that a window
was from the session, it could e.g. end up maximizing a dialog, or
put a window you just launched on another desktop or in a weird
place. And in fact I see a lot of bugs like this in window managers
that try to handle non-session-aware apps.

However, for session-aware apps, Marco can tell that the
application instance is from the session and thus restore it
reliably, assuming the app properly restores the windows it had
open on session save.

So the correct way to fix the situation is to make apps
session-aware. libSM has come with X for years, it's very
standardized, it's shared by GNOME and KDE - even twm is
session-aware. So anyone who won't take a patch to add SM is more
archaic than twm - and you should flame them. ;-)

Docs on session management:
http://www.fifi.org/doc/xspecs/xsmp.txt.gz
http://www.fifi.org/doc/xspecs/SMlib.txt.gz

See also the ICCCM section on SM. For MATE apps, use the
MateClient object. For a simple example of using libSM directly,
twm/session.c in the twm source code is pretty easy to understand.

@lingvoboard
Copy link

Как временный вариант для растягивания окна во весь экран можно использовать следующий макрос:
Ctrl-<.>
F9 c v (переключение "Video mode")
Ctrl-Shift-<.> (to a record in special mode)
Execute after FAR start - OK
Empty command line - OK


Т.е. этот макрос сразу после старта меняет "Video mode"
Но лучше конечно будет если появится когда-нибудь команды --maximise и --geometry=GEOMETRY (как у terminator-а к примеру)

@unxed
Copy link
Contributor Author

unxed commented Nov 5, 2018

/bin/bash -c "far2l & sleep .4 && wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz"

Я вот так делаю, например :)

@elfmz elfmz closed this as completed in 60ec253 Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants