Move a window to another workspace - objective-c

This is what I am doing progamatically:
User is currently focused in worksapce 2 because from the main workspace they clicked "fullscreen" green button. 10 seconds later, while they user is in workspace 2, programmatically from my app in main workspace this happens:
Main workspace:
1) Open new window
2) Full screen it
3) activateIgnoringOtherApps so it brings my app to top
Step 3. This causes animation and change from the Workspace 2 to main workspace.
I was thinking after step 1 i should move the window i am opening (after 10sec countodwn) to "Workspace 2" I was thinking of using this code here: How can I programatically move one Terminal.app window to another space? I am hoping this will not make it change workspace.
My goal is to support 10.6+, will the code in linked topic do the trick so that my window is moved to current workspace, and doing activateIgnoringOtherApps will not cause scroll all the way to left.
Demo
To see exactly what I mean by scrolling workspace you can install my firefox addon: https://addons.mozilla.org/en-US/firefox/addon/nativeshot/
Then please Shift + Click two times my addon button the gets added to toolbar, then make fullscreen any other app other then firefox. As 10 sec countdown is finished you will see the scroll to newly opened window (which is an image editor on a screenshot)
Here is a youtube screencast showing the issue: https://www.youtube.com/watch?v=ihl8PHjO8fI

Related

I'm having trouble with the resolution of the just the window size of IntelliJ

I am having trouble with the window size of IntelliJ when I'm starting a new project. For instance, when I open IntelliJ and click on import project I don't see the "OK", "Cancel" button at the bottom of the window, plus the window cannot be maximized to full screen and I cannot scroll down.
I tried searching in the setting but I just don't understand what setting to click on. I recently started using IntelliJ and I don't wanna enable some setting that i"m not sure of and get into a new mess.
If you look at the pictures above, you can see the buttons or the options are just hidden because of the window size or the resolution of the window.

Showing file name when in full screen mode in Intelij Idea

Intelij Idea does hides every thing when in full screen mode so that the developer can make use of maximum screen space available for writing code. From the documentation:
In Full Screen mode, IntelliJ IDEA expands the main window to occupy
the entire screen. All operating system controls are hidden, but you
can access the main menu if you hover the mouse pointer over the top
of the screen.
I recently embarked on the journey to minimise the use of mouse and therefore have started using the full screen mode. It sometimes happen that I need to know the file name. This is required as we have many files with more or less similar names (eg. XXXPreMigrationService, XXXPostMigrationService). Now in order to see the file name, I can use different approaches:
Alt+1 Shows file in the Project Explorer window.
Alt+Home Shows file in the Navigation toolbar.
Both the approaches require me to press 2 keys (twice). Is it possible to show/hide the current file name by press/un-press any key? Is there a way I can set a shortcut for such action?

How to show recent projects at right click for PyCharm?

I'm using JetBrains PyCharm 2018.2.1.
I've added the app icon to the taskbar (Windows 10, at the bottom of screen). Everytime I click it, it starts and open the last project. But sometimes I want to open a recent project. I don't want to open the last project first and then switch to a recent project I want to open.
I notice that someone with MacOS can right click the icon and it will show recent projects list to be chosen. How can I achieve that?
The taskbar:
What I want (take MS Visio for example, when I click the icon with right button it shows recent opened files):
Please vote for IDEA-75238 in order to move it up in the queue and receive notifications regarding the progress of the issue. See more information on working with tracker at https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications .
As for now, http://jetbrains.com/toolbox/app provides similar functionality for managing projects and even various IDE versions and other products. It even handles automatic updates without any need to click anywhere or go to websites and download anything.

when using intellij running dual monitors on ubuntu, how to get menu to get menu popup not to drift back to first window?

I use idea on ubuntu linux w/ 2 monitors. I often pull up 2 projects so I can copy stuff from one to the other, and I have one project in a window on
one monitor screen, and the other on the second screen.
My problem is this: when I open the second project in the 'non-primary' monitor screen, and i click on an item in the top level menu bar
the menu pop up displays on the primary monitor screen...not the secondary one... it does not matter if I have the project in the secondary
monitor window maximized or not... the pop up just drifts over to the primary monitor screen..
it is not a fatal error.. I can move my mouse over to the first monitor window and click on the sub menu i want..
but it is so annoying. I'm wondering if this is a bug, or perhaps there is a work around for it ?
Also posted on IntelliJ user community board. If they answer, I will post the response here.
That is unfortunately a Ubuntu specific bug. I recommend you vote for and track it: Pop-up dialogs are sometimes misplaced on Ubuntu 12.04 with dual screens
I can suggest 2 workaround solutions for this issue.
Workaround 1
I use Intellij on my right hand side monitor. But the menus are displayed on left hand side monitor. So, I opened "Displays" configuration and moved the right hand side monitor to the left. Now, the menus are displayed on the correct monitor. Note that, the monitor is still stays on my right hand side:).
Workaroud 2:
Downgrade to JDK 1.6.

KDE and Multi-Monitor, how to have program started on the screen it was opened from

I have been trying KDE and customized it enough to my liking. I added panels and application launchers on each screen and windows opened shows on each screen panel.
But whenever I start an application either from the "start menu" or from the quick launch, it position on any screen.
Is there a way to have application started on the screen it was opened?
After spending too much time in settings, google, and Window Rules, I finally found my answer.
In System Settings -> Window Behavior -> Window Behavior -> Focus Tab
enable the box "Active screen follows mouse"