[TxMt] Re: Reopening windows in the same desktop after relaunch
Etienne Samson
samson.etienne at gmail.com
Tue May 10 09:10:06 UTC 2016
> Le 7 mai 2016 à 22:59, Allan Odgaard <mailinglist at textmate.org> a écrit :
>
> On 4 Apr 2016, at 10:59, Mojca Miklavec wrote:
>
>> I often have up to 100 files opened at the same time, spread across a
>> number of desktops and I only reboot the OS about once in a month. But
>> after every reboot or TM upgrade, I need to sort the windows manually
>> again which is a bit annoying.
>
> Currently TextMate has its own code to do session restore and as I do not know of API to tell what desktop a window is on, or what desktop it should open on, it is not possible to extend this code to support multiple desktops.
Depending on what "desktop" means, there's either -[NSWindow screen] for getting a window's screen or CGSPrivate to have the Spaces parts (eg CGSGetWindowWorkspace). IF you don't mind private things ;-).
Regards,
Etienne Samson
--
samson.etienne at gmail.com
More information about the textmate
mailing list