bugGNU Octave - Bugs: bug #53893, Rearranging widgets in the...

 
 

bug #53893: Rearranging widgets in the variable editor switches to another workspace

Submitted by:  Torsten <ttl>
Submitted on:  Sun 13 May 2018 06:02:42 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating 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)

Sun 20 May 2018 05:22:26 PM UTC, comment #12:

Maybe I should add that all octave windows stay on the old workspace while the window manager switches to another workspace.

Torsten <ttl>
Project Member
Sun 20 May 2018 06:56:18 AM UTC, comment #11:

OK, very helpful, thanks. I'll think of how this can come about. (Even to a different workspace? Wow, that is strange.)

Dan Sebald <sebald>
Sat 19 May 2018 08:59:44 AM UTC, comment #10:

From my tests so far, I can see the follwoing:

  • The effect only happens when VE is floating
  • It happens (but not always) when a variable widget is dragged to a new location inside the VE window
  • It does not happpen when a widget is undocked or redocked, where it is not important whether this is done via dragging or by the related buttons
  • Having a widget made floating and docked again, this widget can be rearranged without initiating this effect in the following!

When the effect shows up, the window manager does not only give focus to another application but even switches to another workspaces (I generally have 4 workspaces configured).

Torsten <ttl>
Project Member
Sat 19 May 2018 08:39:47 AM UTC, comment #9:

OK, fixing that bug clears things up a bit.

It's just the variables windows (which are variable_dock_widget, not octave dock widget) for which this happens. Can you narrow it down further? For example, does this only happen when dragging the variable sub panel to a different location? Only dragging the variable sub-panel outside the Variable Editor? How about if you press the undock button? Pressing the redock button.

My suspicion is that this has to do with the work-around for

https://bugreports.qt.io/browse/QTBUG-44813

Recall, the solution for the above is to force any "floated-by-dragging" QDockWidget to redock and undock again directly. I'm wondering if on your system perhaps the focus leaves the Variable Editor in one of those steps based upon the window-manager rules.

Dan Sebald <sebald>
Sat 19 May 2018 08:14:50 AM UTC, comment #8:

Still seeing my window manager sometimes moving to another workspace when rearranging the variable dock widget within the variable editor. This does not happen when rearranging main dock widgets.

Torsten <ttl>
Project Member
Wed 16 May 2018 08:33:54 PM UTC, comment #7:

OK, works here, thanks. Now what is the original bug? I'm rearranging the Main GUI's octave_dock_widgets and the Variable Editor's label_dock_widgets and I don't see anything unusual. (I'm on Mint/Cinnamon.)

Dan Sebald <sebald>
Wed 16 May 2018 07:57:58 PM UTC, comment #6:

The issue with missing highlighting when docking (and sometimes undocking) should be fixed with changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/9b67c2294129

Torsten <ttl>
Project Member
Mon 14 May 2018 09:42:40 AM UTC, comment #5:

@Torsten: The place that the "non-highlight-title-from-window-to-widget" begins with this changeset:

I think the issue is the following:

It could well be that at the moment that make_widget() is called the window/widget is in a transitory state where it isn't visible. I'm not sure. Anyway, it is probably a good idea to fix that issue first, and then address the original bug report.

Dan Sebald <sebald>
Sun 13 May 2018 08:40:40 PM UTC, comment #4:

It's the patch in Bug #53600, but as noted there, that patch doesn't seem to fix the issue described in Comment #3.

Dan Sebald <sebald>
Sun 13 May 2018 07:57:32 PM UTC, comment #3:

Oh, I see. Well, I don't observe that here, but I do notice that rearranging the octave_dock_widgets by mouse drag causes a lot of redrawing as the window dynamically drags into place. That is, there is some flashing of the window title as the window shrinks into place as though focus is bouncing back and forth with each redraw.

What I can say is that if I undock an octave_dock_widget and then redock, the title is not highlighted. One has to click the mouse in a different octave_dock_widget and then click the recently docked widget to get the highlight (focus) back. But wasn't that fixed somewhere recently?

Dan Sebald <sebald>
Sun 13 May 2018 07:26:09 PM UTC, comment #2:

The effect does not happen when un/docking a widget, regardless whether via buttons or via drag & drop. It only happens when changing the location of a docked widget within the main window.

Torsten <ttl>
Project Member
Sun 13 May 2018 07:04:25 PM UTC, comment #1:

This doesn't happen Mint/Cinnamon (related to Ubuntu). My guess would be that this has to do with the code added in

to address that Qt bug, QTBUG-44813. That Qt bug has specifically to do with floating by mouse-drag. What happens if--rather than drag and rearrange--you float a subpanel by clicking the "undock button" in the header and then redock the widget using the same button? Does focus come back to the Variable Editor?

Dan Sebald <sebald>
Sun 13 May 2018 06:02:42 PM UTC, original submission:

This happens on Ubuntu Unity 16.04 LTS: Whenever I rearrange the dock widgets in the variable editor, the window manager switches to another workspace. This happens when the VE is docked and is floating but with different "target workspaces".

Torsten <ttl>
Project Member

 

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

Attach Files:
   
   
Comment:
   

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 sebald (Posted a comment)
  • -email is unavailable- added by ttl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can 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):

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3