bugGNU Octave - Bugs: bug #44692, [GUI] Undocked editor pane has no...


bug #44692: [GUI] Undocked editor pane has no Minimize button

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Wed 01 Apr 2015 07:52:12 PM UTC  
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: ConfirmedAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Sun 03 Sep 2017 03:18:31 PM UTC, comment #10:

The window is available via "Alt+Tab". The KDE window manager clearly knows about it, but is simply refusing to decorate it. Probably, because the type is "Qt Dock Widget".

In another interesting turn of events, the name of the window as listed in the Alt+Tab menu is "&Variable Editor". There is another bug report about that, but clearly this is related. Top-Level Menu Titles shouldn't include shortcut codes is my guess.

Rik <rik5>
Project Administrator
Sat 02 Sep 2017 01:54:40 PM UTC, comment #9:

I think you are right, KDE prevents a "Qt Dock Widget" from being decorated. Is an undocked widget (at least) separately available via "Alt-Tab"?

Torsten <ttl>
Project Member
Sat 02 Sep 2017 12:39:28 PM UTC, comment #8:

Alas, the patch didn't work. I added a debug statement just to make sure I was executing the code, and it is being run.

I went even further and added Qt::WindowMinimizeButtonHint, but it didn't help.

I wonder if it is the KDE Window Manager that is refusing to decorate the undocked window? I found this webpage: https://techbase.kde.org/Projects/KWin/Window_Decoration_Policy.

Maybe the window type remains _NET_WM_WINDOW_TYPE_DOCK even after it is detached?

Rik <rik5>
Project Administrator
Sat 02 Sep 2017 10:50:06 AM UTC, comment #7:

In contrast to windows or other desktop environments, Philip's screenshot doesn't show any window decorations at all, especially no title bar. Could you please try the following simple patch on a KDE system?

(file #41716)

Torsten <ttl>
Project Member
Sat 02 Sep 2017 07:43:52 AM UTC, comment #6:

Besides KDE, are there any other desktop environments known, which are affected?

Torsten <ttl>
Project Member
Fri 01 Sep 2017 07:40:03 PM UTC, comment #5:

Still the same on Linux. Interestingly, it seems to work on Windows.

When the undock operation is executed, isn't there a function call or switch to say that this is a top-level widget that should have window decorations?

Rik <rik5>
Project Administrator
Wed 22 Apr 2015 04:56:41 AM UTC, comment #4:

Confirmed. I notice this as well on Kubuntu 12.04 with an undocked editor.

Rik <rik5>
Project Administrator
Thu 02 Apr 2015 12:13:01 PM UTC, comment #3:

I mis-spoke, - it is firing for the topLevelChanged

John Donoghue <lostbard>
Project Member
Wed 01 Apr 2015 09:05:21 PM UTC, comment #2:

A quick look online, and it looks like normally the QToolWdget doesn't have a minimize button but can be faked up by setting the window flags to Qt::Window and Qt::Widget depending on whether it is floating or not.

That is being done in octave-dock-widget class, when the topLevelChanged is emitted, but it doesn't appear to be getting it.

John Donoghue <lostbard>
Project Member
Wed 01 Apr 2015 08:37:28 PM UTC, comment #1:

It is on all undocked panes in fedora

John Donoghue <lostbard>
Project Member
Wed 01 Apr 2015 07:52:12 PM UTC, original submission:

See attached pic of Octave on my Mageia-4 KDE desktop with undocked editor pane.

Unlike on e.g., Windows, I see no minimize button, just the Close and Dock buttons.
I haven't checked but AFAIR this goes for all undocked panes.

Philip Nienhuis <philipnienhuis>
Project Member


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

Attach File(s):

Attached Files
file #41716:  bug44692_v01.patch added by ttl (797B - text/x-patch)
file #33507:  Oct_editor1.png added by philipnienhuis (497KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ttl (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by philipnienhuis (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 project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Sep 2017 10:50:06 AM UTCttlAttached File-=>Added bug44692_v01.patch, #41716
    Wed 22 Apr 2015 04:56:41 AM UTCrik5StatusNone=>Confirmed
    Wed 01 Apr 2015 07:52:12 PM UTCphilipnienhuisAttached File-=>Added Oct_editor1.png, #33507

    Back to the top

    Powered by Savane 3.1-cleanup1