Menu

#3342 Alt-tab in Wine (Ubuntu) fails for HeidiSQL

Fixed
nobody
Wine (3)
Problematic
Defect
2013-10-05
2013-09-24
Anonymous
No

Originally created by: justpus... (code.google.com)@gmail.com

What exact steps will reproduce the problem?
1. Open the main window of HeidiSQL with wine in Ubuntu.
2. Press Alt-tab once.
3. Press Alt-tab once more.

What was the expected output? HeidiSQL is focused again.
What happened instead? Another window is focused.

Linked issue: when HeidiSQL window is focused, its button on task bar is not displayed as active.

Another demonstration of the problem: when HeidiSQL window is focused, let's press Alt-tab and hold Alt pressed. We can see that HeidiSQL icon in Alt-tab list is last, not first. Even more, it is always last in that list, that's why we can't return to HeidiSQL window with two Alt-tabs. I've made a screenshot of this issue.

I think this issue is related with hidden application window in Delphi, which represents button on taskbar and icon in alt-tab. 

Suggested fix (optional)?
Maybe try force focusing application window after main form becomes visible.
I can help with testing this issue.

Version used?
HeidiSQL revision: 8.0.0.4527
MySQL Server version: 5.5.32
Operating system: Ubuntu 12.04, wine-1.4

1 Attachments

Related

Tickets: #2640
Tickets: #3262

Discussion

  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: a...@anse.de

    Could definitely be caused by
      Application.MainFormOnTaskBar := False

    There is another issue with that: The Windows 7 Flip3D feature also does not work currently with HeidiSQL (issue #2351).

    In [r4371] I disabled MainFormOnTaskBar, after having activated in in [r3763]. That fixed issue #2640 (Crash on alt-tab when in popup editor).

    I'm very unhappy with that situation, as we have issues in both cases. I already decided a fixed crash is more worth than a cosmetic feature like Flip3D.

    Now you say even Alt-Tab is not working in Wine, which is too bad. Can you verify this on a second computer please, also using Wine? Just to have it more sure it's not some issue with your special Ubuntu or Wine version or whatever.

    Probably I can again activate MainFormOnTaskBar, and just silence the crash reported in issue #2640. I have to retry that again.

    Labels: Severity-Problematic
    Status: NeedInfo

     

    Related

    Commit: [r3763]
    Commit: [r4371]
    Tickets: #2351
    Tickets: #2640

  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: roman.ivasyuk@gmail.com

    I have the same problem

    HeidiSQL revision: 8.0.0.4458
    Xubuntu 12.04
    MySQL server version: 5.5.24
    Wine-1.4

     
  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: justpus... (code.google.com)@gmail.com

    Ansgar,

    I've already tested in clean Xubuntu 12.04 install under Virtualbox to be sure it's not my system fault (the screenshot is made under Virtualbox).
    I'll try to verify also on the freshest version of Ubuntu and wine a bit later.
    Does the crash appear only on Windows? I think disabling MainFormOnTaskBar on Windows and enabling it under wine could solve most of problems.

     
  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: a...@anse.de

    I think it crashed also on Wine, as there was not OS specific code involved here.

    Thanks for verifying the problem.

    Summary: Alt-tab in Wine (Ubuntu) fails for HeidiSQL
    Status: Accepted

     
  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: a...@anse.de

    I spent two hours on that topic this night. Unfortunately, there was not only a crash (access violation) described in issue #2640 but also this damned completion proposal popup window, when returning to HeidiSQL via Alt-Tab.

     

    Related

    Tickets: #2640

  • Anonymous

    Anonymous - 2013-09-24

    Originally posted by: a...@anse.de

    Huh, I have just found a way to prevent that damn completion window to pop up when MainFormOnTaskBar is set, in [r4530]. I'm unsure if that really does not introduce new issues, but my tests look promising. So, please check if [r4530] works with Alt-Tab now.

    Status: NeedInfo

     

    Related

    Commit: [r4530]

  • Anonymous

    Anonymous - 2013-09-25

    Originally posted by: roman.ivasyuk@gmail.com

    Ansgar,
    I tried to install build [r4530], and it perfectly works with Alt-Tab now.
    Thank you!

     

    Related

    Commit: [r4530]

  • Anonymous

    Anonymous - 2013-09-25

    Originally posted by: a...@anse.de

    Awesome. Fixed two bugs in one modification.

    Thanks for your detailed report + quick feedback!

    Status: Fixed

     
  • Anonymous

    Anonymous - 2013-09-25

    Originally posted by: justpus... (code.google.com)@gmail.com

    Ansgar,

    [r4530] completely resolves all alt-tab issues in Linux. Thank you very very much for that!

    P.S. While testing alt-tab, I accidentally noticed another small issue. If we have completion popup open and switch to another window by alt-tab or pressing button on taskbar with mouse, completion popup window remains on screen on top of other windows. When I switch back to HeidiSQL, it disappears. The behaviour under Windows is the same.
    I don't think this is a problem at all (who wants to switch windows after bringing up completion popup?), but I think I should just tell you.

     

    Related

    Commit: [r4530]

  • Anonymous

    Anonymous - 2013-09-25

    Originally posted by: a...@anse.de

    Can confirm that, even as a newly introduced bug since this morning ([r4530]). But I think I can even fix that, now that I was creative in finding workarounds for that completion popup. Will check that.

     

    Related

    Commit: [r4530]

  • Anonymous

    Anonymous - 2013-10-05

    Originally posted by: dhahler@gmail.com

    Thanks for fixing this annoying bug for Wine/Ubuntu users!

     
  • Anonymous

    Anonymous - 2013-10-05

    Originally posted by: a...@anse.de

    (No comment was entered for this change.)

    Labels: Wine

     
MongoDB Logo MongoDB