Created attachment 7245 [details] first patch: remove gapp global usage in x11_main.c this makes the code more regular but is a big patch although it really changes no functionality of the program (attachment commit-6d89c37) the second patch: (attachment commit-6d89c37) - adds a clone key 'o'; this forks and execs mupdf like mupdf <filename> <pageno> (i would have liked it to save more of mupdf's application state so that the new window would be substituable for the old one but i had to keep only what the new mupdf has command line options for which is enough) - marks the pdf fd as close on exec; this is needed or else the fork inherits the old mupdf's open file discriptor - removes the global filename from x11_main; last of the fix up from the last patch feel free to regroup the changes - applies realpath on filename; this is needed as without it the filename saved in app->filename can sometimes be relative for mupdf <filename> to work the path needs to be absolute the first patch must be applied before the second i here by assign all rights to these patches to Tor and ask that i be credited for them
Created attachment 7246 [details] second patch: Add o key to clone open pdf in new window
*** This bug has been marked as a duplicate of bug 691330 ***