Giter Club home page Giter Club logo

Comments (6)

palinek avatar palinek commented on August 25, 2024

Do we want to make it a pure menu?

With something like this:

diff --git a/src/qlippersystray.cpp b/src/qlippersystray.cpp
index 52ea360..430911c 100644
--- a/src/qlippersystray.cpp
+++ b/src/qlippersystray.cpp
@@ -51,14 +51,6 @@ QlipperSystray::QlipperSystray(QObject *parent)
     m_shortcutMenu->setModel(m_model);
     m_shortcutMenu->setWindowTitle(tr("Qlipper - a clipboard history applet"));

-    // Windows API does not handle well some combinations of flags in custom widgets.
-#ifndef Q_OS_WIN32
-    // This flag is mandatory to get focus when user activates global_key.
-    // OK, window gets a decoration but it works. Menu is displayed without the
-    // the decoration if is the systray icon clicked.
-    m_shortcutMenu->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint);
-#endif
-
     connect(m_shortcutMenu, SIGNAL(triggered(QModelIndex)), m_model, SLOT(indexTriggered(QModelIndex)));
     connect(m_shortcutMenu, SIGNAL(triggered(QModelIndex)), m_shortcutMenu, SLOT(close()));

... it is done. It works on linux. This change doesn't change anything for windows (the #ifdef). But I can't test with MacOS.

from qlipper.

Arnaudv6 avatar Arnaudv6 commented on August 25, 2024

Fixes it for me: thanks palinek !
(using linux here), can't help with OSX or Windows.

from qlipper.

Arnaudv6 avatar Arnaudv6 commented on August 25, 2024

Not closing yet for it is not mainlined...

from qlipper.

palinek avatar palinek commented on August 25, 2024

I'm not going to make this change into master, because setting the flags seems to be intentional there and I don't know the background...

@pvanek ?

from qlipper.

martinrotter avatar martinrotter commented on August 25, 2024

@Arnaudv6 What exact Qt version do you use?

from qlipper.

Arnaudv6 avatar Arnaudv6 commented on August 25, 2024

@martinrotter 5.7.0
...why?

from qlipper.

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.