Code Monkey home page Code Monkey logo

Comments (9)

GFDGIT avatar GFDGIT commented on September 15, 2024 1

Besides, let me explain the impact of the other two options on the always_ on_ top function:
Note that their priority is also arranged in the following order!

  1. Close mian window after item activated (in preferences - history, as same as "activate_closes" in the script)
    When this option enable, window always close after one item activated, even always_ on_ top is enable.

  2. Close when unfocused (in preferences - general, as same as "close_on_unfocus" in the scrupt)
    when this option enable, window always close when lose focus.

  3. always_ on_ top only controls whether the window is above other windows, without controlling whether it is closed.

In my script, when the always_ on_ top function is enabled, the other two options are turned off simultaneously, achieving a universal sense of always_ on_ top.

from copyq.

GFDGIT avatar GFDGIT commented on September 15, 2024

you also need to disable close_on_unfocus and activate_closes at the same time.

Or, use this script:
toggle always_on_top

from copyq.

iG8R avatar iG8R commented on September 15, 2024

Thanks a lot for the advice and script!
But, IMHO, such behavior of CopyQ is somehow contradictory in terms of logic and operation:

  • logic. I think, it's quit weird when the user needs to adjust other parameters for the one to work properly. Shouldn't the application consider all settings and, if there are dependencies, change them accordingly or prioritize the more obvious setting while ignoring the related ones?
  • operation. As you can see, I didn't change any other parameters only "Always on Top", but sometimes it works and sometimes it doesn't. If other parameters also affect the behavior of the application, why do they sometimes make changes to the operation of the application and sometimes not?

from copyq.

iG8R avatar iG8R commented on September 15, 2024

@GFDGIT
Can you please give me a hint on how to make it so that after disabling the "Always on Top" function using your script, the main window does not close but remains in the background, visible on the taskbar and through Alt+Tab?

from copyq.

iG8R avatar iG8R commented on September 15, 2024

Unfortunately, the script works the same way as when "Always on Top" is manually enabled - sometimes the main window stays on top, sometimes it goes to the background, despite the "Always on Top" option being enabled.

from copyq.

iG8R avatar iG8R commented on September 15, 2024

@GFDGIT Can you please give me a hint on how to make it so that after disabling the "Always on Top" function using your script, the main window does not close but remains in the background, visible on the taskbar and through Alt+Tab?

I figured it out myself - I commented out the following lines in the script and left these parameters disabled in Preferences.

//config("activate_closes",on)
//config("close_on_unfocus",on)

from copyq.

GFDGIT avatar GFDGIT commented on September 15, 2024
  • logic. I think, it's quit weird when the user needs to adjust other parameters for the one to work properly.

Sorry, I misunderstood your question.In the video, you enabled always_ on_ top, and close when unfocus is closed. In this case, even if the focus is lost, the window should not disappear.

  • operation. As you can see, I didn't change any other parameters only "Always on Top", but sometimes it works and sometimes it doesn't.

I am unable to reproduce the above behavior, may this be a bug? You may want to check if the software has been updated.

from copyq.

iG8R avatar iG8R commented on September 15, 2024

I am unable to reproduce the above behavior, may this be a bug? You may want to check if the software has been updated.

Yes, I think, it's a bug, that is why I've committed this issue.

Besides, let me explain the impact of the other two options on the always_ on_ top function

Thanks a lot!

from copyq.

hluk avatar hluk commented on September 15, 2024

This is possibly a bug in Qt framework. There is already one workaround in CopyQ to keep the window open when the "Always on Top" flag changes.

from copyq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.