[Github-comments] [geany/geany] geany cannot restore previous window size (reopen after maximized) (#1593)

elextr notifications at xxxxx
Thu Aug 31 02:58:28 UTC 2017


Resizing, maximising, minimising and restoring are window manager functions, not application functions.  Geany is not informed of their happening, all it can do is read the state at shutdown and try to restore it at startup if the WM allows.  So Geany is not aware of the resize to sizeA so it can't remember it, it just gets the maximised size when it reads it at shutdown.

Applications like firefox probably interface to the desktop via dbus and will get informed of the resizes and maximises and other session functions that way.  But Geany does not do dbus interfacing because its not standardised across different systems (especially windows).  High resource projects like Firefox can afford to support multiple such systems, but Geany cannot, but may add it if a portable library becomes available.

> close && open geany, geany window would be nearly maximized size (but not truely maximized).

Opens maximised here on a cinnamon desktop, after you close Geany look at the `geometry=` setting in `~/config/geany/geany.conf` and check that the last value is `1` which means maximised.  If its not, then the desktop is not telling Geany its maximised.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1593#issuecomment-326175657
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170830/04e63e10/attachment.html>


More information about the Github-comments mailing list