bugBattle for Wesnoth - Bugs: bug #22176, GUI2 tooltips may cause map labels...

Show feedback again

bug #22176: GUI2 tooltips may cause map labels and chat lines to be drawn over a GUI2 dialog

Submitted by:  Ignacio R. Morelle <shadowmaster>
Submitted on:  Wed 11 Jun 2014 03:27:40 AM UTC  
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: User Interface
Status: FixedPrivacy: Public
Assigned to: Charles Dang <vultraz>Open/Closed: Open
Release: 1.11.15+dev, 1.13.0-devOperating System: Any?

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Wed 19 Oct 2016 11:28:40 AM UTC, comment #4:

Fixed in https://github.com/wesnoth/wesnoth/commit/c3eb503c6ec4b4b8aa96d41fda012590fb8260b1

Charles Dang <vultraz>
Project AdministratorIn charge of this item.
Tue 06 Sep 2016 03:55:42 AM UTC, comment #3:

[06:47:10] <vultraz> JyrkiVesterinen: https://gna.org/bugs/index.php?22176 AFAIK this is still an issue. Aginor said it's because tooltips are displayed in popup 'windows' and as such set the is_in_dialog flag. Need some way to not set is_in_dialog for tooltips and for dropdown menus, but I can't figure out a good way.

I think this can be fixed by allowing multiple dialogs to be shown at once, and only clearing is_in_dialog when they all have been closed.

Jyrki Vesterinen <jyrkive>
Project Member
Sat 16 Jul 2016 10:17:00 AM UTC, comment #2:

While testing bug #24532 I noticed this one was still occurring. It also occurs with notifications like 'planning mode activated/deactivated', etc.

Wedge009 <wedge009>
Project Member
Thu 19 Jun 2014 06:44:14 AM UTC, comment #1:

It's worth noting that this affects gui2::tchat_log's Previous/Next page buttons and their tooltips, which aren't commented out. I may opt for #ifdef'ing out the tooltips if you consider fixing this bug unfeasible for 1.12.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Wed 11 Jun 2014 03:27:40 AM UTC, original submission:

If a GUI2 widget has a tooltip associated to it, on mouse-over the tooltip may cause all visible map labels and console/chat backlog lines to glitch through the dialog's contents. They also disappear from view once the tooltip does. Additionally, if the dialog doesn't occupy the entire screen and there are labels or chat lines outside the dialog frame, triggering and dismissing the tooltip repeatedly will cause labels and chat lines to be overpainted outside the frame.

This may be reproduced by editing the Gamestate Inspector dialog definition to apply a tooltip to the Copy-to-clipboard button. Enable the commented-out tooltip attribute around line 242 of data/gui/default/window/gamestate_inspector.cfg:

Then launch Wesnoth on the test scenario (`wesnoth -dt`), use the :inspect console command to display the Inspector dialog, and move the mouse pointer over the button with the Copy icon near the inspect contents panel.

The attached screenshot shows an example of the situation when the dialog takes up the whole screen.

Ignacio R. Morelle <shadowmaster>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vultraz (Posted a comment)
  • -unavailable- added by jyrkive (Posted a comment)
  • -unavailable- added by wedge009 (Posted a comment)
  • -unavailable- added by shadowmaster (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Oct 2016 11:28:40 AM UTCvultrazStatusNone=>Fixed
      Assigned tojyrkive=>vultraz
    Tue 06 Sep 2016 03:55:42 AM UTCjyrkiveAssigned tomordante=>jyrkive
    Wed 11 Jun 2014 03:27:40 AM UTCshadowmasterAttached File-=>Added wesnoth-1.13.0-gui2-tooltips-bug.png, #20979
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup