CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Issue when showing Main Window on Mac fullscreen

Open jflaporte opened this issue 8 years ago • 19 comments

With an application in fullscreen mode, when bringing up the Main Window it won't display on the same desktop as the application first in focus. Attempted with a single monitor, it changes the desktop to a non fullscreen desktop and shows the Main Window. Same goes when in multiple monitors mode, it then displays the Main window in another monitor.

Would it be possible to show the Main Window in the focused desktop when in full screen mode?

jflaporte avatar May 07 '18 17:05 jflaporte

It's really annoying issue. I had to migrate to MacOS and using copyq is painful here.

ipleten avatar Feb 11 '19 14:02 ipleten

I really need help with this one if anyone have experience in Objective-C and writing code for Mac.

hluk avatar Feb 17 '19 08:02 hluk

Is there anything we can do as Mac users to assist with getting a fix for this issue? Its getting close to a year since this issue was originally reported (not complaining, just want to help get it addressed).

rsparhar avatar Apr 02 '19 14:04 rsparhar

I'm trying to fix this by changing type of main window (Qt::Sheet) - this way the window can open in fullscreen mode (tested with terminal app). Hopefully this won't break anything else.

hluk avatar Apr 02 '19 17:04 hluk

Did you have a test build we can help with beta testing?

rsparhar avatar Apr 02 '19 22:04 rsparhar

Did you have a test build we can help with beta testing?

Tests build is here: https://github.com/hluk/CopyQ/releases/tag/v3.7.3-beta-osx-fix-open-in-fullscreen

Note: Both dmg files there are the same (I need to resolve that).

hluk avatar Apr 03 '19 06:04 hluk

Its much better than before, It opens on top of windows. Slightly buggy though.

  1. If you show the window and move your mouse to the top to get the menu bar, the copyQ manager disappears. Not sure if this is expected behavior but haven't seen it before in other apps.
  2. I am unable to set my shortcut hotkey to "cmd+`" for show/hide. It does not register the cmd in that key combination but does for others.

Barring that so far, works. I'll let you know if I find any more qwirks.

rsparhar avatar Apr 04 '19 01:04 rsparhar

  1. If you show the window and move your mouse to the top to get the menu bar, the copyQ manager disappears. Not sure if this is expected behavior but haven't seen it before in other apps.

Can you reproduce this if you disable "Close When Unfocused" option (in General config tab in CopyQ)?

  1. I am unable to set my shortcut hotkey to "cmd+`" for show/hide. It does not register the cmd in that key combination but does for others.

Was this problem before? Do you mean you had to set different shortcut to open the main window?

hluk avatar Apr 04 '19 04:04 hluk

I can not recall if this issue happened before with 3.6.3 but I suspect it did though as when I press the hotkey it doesn't "beep" at me so I get the feeling it might be registered in the OS already. I am investigating this. For now, opt+` will do.

I did notice in my testing that many times the main window does pop up infront of the dialog window when sub windows pop up and you have to move the main window to the side to get to the sub popup like for registering a hotkey shortcut sub window. It is annoying but now that I know it happens, the first thing I do is move the main window to see if there is a modal dialog behind it preventing me from using it.

3rd issue found (possible): 3) When you filter your search results in the main window, you have to hit TAB to move your focus to the results before you can start navigating the results with the arrow keys on your keyboard. When you just show the main window without filtering it, the arrow keys work fine out of the gate. I recall on Linux when using CopyQ this did not happen but it does happen for Mac. This issue might be completely outside the change you made and as such I can open a new bug for it if you also deem the same.

thoughts?

rsparhar avatar Apr 04 '19 15:04 rsparhar

For sure #1 is a non-issue. When your mouse hits the top it loses "focus" and hence why it closes.

The modal dialog problem does seem to be a larger issue and I'd say its issue 4. I find if I am in my browser and click preferences for CopyQ it always shows behind the browser which I have to minimize to see.

rsparhar avatar Apr 04 '19 15:04 rsparhar

@CrajyB Thanks for testing.

When you filter your search results in the main window, you have to hit TAB to move your focus to the results before you can start navigating the results with the arrow keys on your keyboard.

Fixed. Looks like a specific behavior for single line entries on Mac.

I tried also fixing the dialog behavior but it could be specific to system configuration.

You can install and test again. Let me know if the dialog behavior is any better.

hluk avatar Apr 04 '19 17:04 hluk

Yep, so now after filter the arrow keys work... THANKS!

For the hotkey it was registered to the OS for another action, so that is a non-issue.

Nice so far this is so much better.

I'll use it for longer and report back feedback.

rsparhar avatar Apr 04 '19 21:04 rsparhar

What I'm noticing is when you select an item to paste and hit ENTER, it doesn't paste that item instead it copies it to your clipboard and you have to hit CMD+V to paste it into the last window in view. I searched through the options but did not find any setting for this feature. Do you think its related to the focus?

rsparhar avatar Apr 05 '19 19:04 rsparhar

What I'm noticing is when you select an item to paste and hit ENTER, it doesn't paste that item instead it copies it to your clipboard and you have to hit CMD+V to paste it into the last window in view. I searched through the options but did not find any setting for this feature. Do you think its related to the focus?

Worked fine for me, but I used an old mac. Still, this could be unrelated different issue. Does the pasting work OK in v3.7.3?

hluk avatar Apr 06 '19 12:04 hluk

@hluk thank you so much for your responsiveness and fixing the main issue reported here. I got busy with work but will try to make some time today to install the release version rather than the beta I was testing to see if this same problem occurred.

rsparhar avatar Apr 09 '19 15:04 rsparhar

Oh and forgot to mention I'll open a new bug if the problem persists. Do not want to keep lumping things into this bug as it is truly resolved.

rsparhar avatar Apr 09 '19 15:04 rsparhar

I got busy with work but will try to make some time today to install the release version rather than the beta I was testing to see if this same problem occurred.

@CrajyB Thanks for testing. The fix is not yet released (only merged to master branch in this repository). But I'm planning to make release soon (hopefully this week).

hluk avatar Apr 09 '19 15:04 hluk

So I tested with 3.7.3 and the same issue occurs upon hitting "enter" on a selected item does not paste it into the last active window. Instead it puts it on the mac clipboard which you have to then hit CMD+V to paste.

Shall I go ahead and create a new bug for this?

Regardless though, things are waaaaaay better in Mojave now.

rsparhar avatar Apr 09 '19 15:04 rsparhar

So I tested with 3.7.3 and the same issue occurs upon hitting "enter" on a selected item does not paste it into the last active window. Instead it puts it on the mac clipboard which you have to then hit CMD+V to paste.

@CrajyB I think it's this issue: #1091

Well, I should move the "help wanted" label there.

hluk avatar Apr 09 '19 15:04 hluk