Please note that this script probably isn’t very robust, and any efforts to move the “last” or “previous” windows are purely based on the assumption that wmctrl -l lists windows in the order they were opened. As the note in the help text suggests, if you try to open a dialog in Inkscape (or some other program) and it doesn’t appear due to rendering off-screen, you can then open a terminal and run gather_windows.sh -1 (or -p or –previous) to move the window to the top left. gather_windows.sh xterm will move all your Xterm windows to the top left, gather_windows.sh -i will move only the Inkscape windows, and gather_windows.sh will just move the last window you opened. Note: the -1 option lets you open a terminal to run this script *after* your window has gone missingĮ.g. With any other option, try to find windows that match the string provided as part of their WM_CLASS property, and move them to the top left. a, -all : move all the windows from all applications to the top left of the screen i, -inkscape : move all the Inkscape windows to the top left of the screen 1, -p, -previous : move the previously opened window to the top left of the screen With no options : move the last opened window to the top left of the screen Then you’ll need to make it executable by running:Ĥ) To use it, open a terminal within XQuartz and run it with either no options, or a single option, as follows (this is the result of running with the -h option): ( brew install wmctrl)ģ) Please take a look at the script (it’s not that long) to confirm that it’s not sending all your bitcoins to me, or anything equally dodgy. So I expanded the script to cover all those cases.ġ) You’ll need to install the ‘wmctrl’ program, which does the hard work of repositioning the windows. And what about other applications? Surely Inkscape can’t be the only program that XQuartz has problems with. But that seemed like overkill when it’s usually just the last dialog you tried to open that you need to move. So I’ve crafted my own clunky (but hopefully slightly less clunky than the others) solution to the problem: a shell script to find all the Inkscape windows and move them to the top-left of the XQuartz screen. There are various workarounds mentioned on those sites, but they’re all a little clunky, to say the least. This issue is well known to MacOS users of Inkscape, and has been reported on Launchpad at least twice, has its own entry in the Inkscape FAQ, and also crops up on the main Inkscape forum. If you get lucky some might appear where you can use them, but enough will go missing that it makes working with the program virtually impossible for anything but the simplest of uses. The same with the Fill & Stroke dialog, the Inkscape Preferences, the Align & Distribute dialog, and all the others. Open the Document Properties dialog and there’s a good chance it will be placed at some obnoxious coordinates that render it invisible to the user. This manifests itself in Inkscape as dialogs disappearing into the ether before you ever get a chance to see them. The biggest problem with XQuartz on a multi-screen setup is that it has an annoying tendency to place new windows off-screen. At my new job they suffer from the delusion that more screens are better, so I have to work with a 3-screen arrangement that would make an air traffic controller proud. Unfortunately XQuartz has more than a few “issues” – not least of which is a significant problem with multi-screen setups. For most releases, therefore, the Mac offering is a straight port of the Linux version, and uses XQuartz as its X Server. Whilst Inkscape is available for the Mac, there is no maintainer to release native builds. Just recently I’ve switched jobs and have to use a Mac as my day-to-day work machine, rather than the Linux box I’m used to. So much so that I use it in the creation of my cartoons and comic strips, and have been writing a monthly column about it in Full Circle Magazine for over six years now! My go-to editor for vector images is Inkscape.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |