bugGNU Octave - Bugs: bug #53283, Variable Editor: floated variable...


bug #53283: Variable Editor: floated variable panels disappear with loss of V.E. focus

Submitter:  Dan Sebald <sebald>
Submitted:  Sun 04 Mar 2018 06:30:22 PM UTC
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 04 Apr 2018 05:41:19 PM UTC, comment #5: 

I've read so much Qt material my head is spinning, but somewhere I recall reading about this behavior and there was some debate about whether it is good or bad.  At first blush it does seem kind of annoying, but maybe some like this behavior...and if it is settable somewhere in the window manager, then perhaps it shouldn't be changed.

My one worry with this is that if the Variable Editor sub-panels begin to look-and-feel too much like a top-level window we'll incur just as much confusion.  What to do if the user hides the variable editor and there is still a floated variable sub-panel open?  Then there is this window on the desktop with no associated icon in the system toolbar.  So, I'm hesitant to put any effort into fixing this until someone defines exactly what should happen.  In light of the still-not-correct Bug #53276 with toplevel windows, more hesitation to dig in.

My guess is that users will start asking for Variable Editor windows for individual variables, i.e., each one with it's own toolbar just like there is Fig1, Fig2, etc.  Someone else can do that later.

Dan Sebald <sebald>
Wed 04 Apr 2018 05:25:06 PM UTC, comment #4: 

FWIW, I find that an undocked VE variable window is visible most of the time.  The exception is when I undock one of the other main widgets like the Documentation tab or the Command Window tab.  When those are undocked, and have focus, then the VE window disappears.  The window reappears when I select the main Octave window.

This is with KDE and QT5.6.1.  I suspect somehow the window role setting is not being applied correctly.  Or maybe we don't change the window Type field when it moves from being a docked widget to an undocked widget?  I think it needs to be something like "Normal Window" or maybe "Utility Window".

This report describes the exact same problem with QDockWidgets and KDE (https://blogs.kde.org/2007/09/08/qdockwidget-annoyance-including-hack-gets-rid-it).

Rik <rik5>
Group administrator
Mon 05 Mar 2018 06:51:42 AM UTC, comment #3: 

I have pushed the patch with changeset

The issue of this bug report still needs to be tackled, which is a bit more tricky since it only occurs on some window managers as far as I remember.

Torsten Lilge <ttl>
Group Member
Mon 05 Mar 2018 06:22:29 AM UTC, comment #2: 

Ah, OK.  I just tested that, and it definitely still needs to be applied.  Either we can change the title of this bug report to match that, apply the patch and close.  Or, if you want to leave this open, simply apply that patch without a bug report.

Dan Sebald <sebald>
Mon 05 Mar 2018 06:00:21 AM UTC, comment #1: 

The patch from


is for hiding floating variable widgets when the variable editor is hidden. It does not solve the issue mentioned in the summary of this report, which only occurs on some window managers.

Torsten Lilge <ttl>
Group Member
Sun 04 Mar 2018 06:30:22 PM UTC, original submission:  

There was a report of undesirable behavior of floated variable editor panels disappearing from view when the variable editor itself goes out of focus inside this bigger bug report that is now closed:


Let's continue this here and confirm it is still happening (I can't reproduce on Cinnamon).

There was a patch here:


as well as a several posts between those two entries regarding this issue.

I'm not clear if the issue has been fixed by the patch.  Hopefully it is simply a matter of applying the patch, but it may need slight adjustment because there has been cleanup of the whole variable-editor.cc file since closing report #53046.

Dan Sebald <sebald>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by sebald (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-04 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-a0c1.
    Corresponding source code