Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-3

QtSingleApplication should try harder to force window to the foreground

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: No Version
    • Fix Version/s: Next Major Release
    • Component/s: Single Application
    • Labels:
      None

      Description

      A common scenario with singleton applications is that second and later instances force the first instance into foreground. This would usually be the expected behaviour as this would make singleton applications behave more or less like applications that allow multiple instances.

      However, both under Windows and modern X11 window managers, applications are only allowed to move to foreground if the second instance passes foreground token to the first instance. Windows uses AllowSetForegroundWindow() call and under X11 the second instance should pass its QX11Info::appUserTime (or perhaps QX11Info::appTime if user time is not initialized on program init) to the first instance which should update _NET_WM_USER_TIME of the window the application decides to move to foreground. So, it would be nice to have a method that behaves like sendMessage() but that also does this token passing (sendMessageAndForegroundToken() for example).

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            admin Administrator
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes