Terminal: Use tab-bar/title bar for dragging window around

Created on 8 May 2019  路  14Comments  路  Source: microsoft/terminal

I think its really nice that you can put the terminal-tabs in your titlebar but I got an issue there.

You can't move the window around klicking on the blank space in the the-bar to move the window around (highlighted in the screenshot).

Since people are moving their terminal quite often it would be nice to offer this space, so you can drag your terminal around.

grafik

Area-User Interface Issue-Task Needs-Tag-Fix Product-Terminal Resolution-Fix-Committed

Most helpful comment

Okay, IMO, lets leave #528 as "the tab row steals focus from the terminal".

This is now the "use the tab bar to drag the window" thread.

All 14 comments

Duplicate of #528 (?).

Duplicate of #528 (?).

No, the issue you mentioned describes losing focus of the current terminal-tab.

This issue is about dragging the whole window around.

Edit: This is a explicit feature-request

@Paul-Weisser It is a duplicate of #528 -- that issue specifically explains that when one is trying to drag the window to move it, it doesn't work and _additionally_ this action blocks the current tab for input.

@Paul-Weisser It _is_ a duplicate of #528 -- that issue specifically explains that when one is trying to drag the window to move it, it doesn't work and _additionally_ this action blocks the current tab for input.

please read #528 till the end as zadjii-msft is adressing this issue as an external issue...

Okay, IMO, lets leave #528 as "the tab row steals focus from the terminal".

This is now the "use the tab bar to drag the window" thread.

As I mentioned in #528, this is a bug with XAML Islands currently, where we're not getting WM_NCHITTEST messages for the XAML Islands area (which hosts the tab control). They're working on fixing that for us - once we get those messages, we'll be able to hittest ourselves against the actual tabs, vs the "background" of the tabs.

@zadjii-msft does that mean the fix will require another Windows build?

I had a couple thoughts on temporary work around for this:

  • is it possible to move the +v control to the left side, and then have the tab bar no wider than the tabs themselves? (of course, you'd probably want to trim the text in tabs so it didn't show the whole path!)

  • or, can an additional invisible control be placed over top the empty area in the tab bar that can give you the message to allow you to drag?

I haven't had time to test these, if someone can or gets to it before me, it might be an acceptable workaround.

This'll be addressed by #929.

Moved into v0.3, the second public preview.

hoping that would also fix the ability to drag just above the tab.. as I'm used to dragging from there with apps like Chrome as well.

:tada:This issue was addressed in #1948, which has now been successfully released as Windows Terminal Preview v0.3.2142.0.:tada:

Handy links:

Hmm thanks for the work.

But it seems that so far, all that has really happened is moving the drop down menu closer to the tabs. You can still only drag from the small area to the right of the drop down menu. If you have just one or two tabs, this area is now a bit larger then it was before. But once you get to 3 or 4 tabs, it's just as small again.

I understand software development takes time. I do it myself. But the news exaggerated this. Keep up the good work anyways.

But let me know when you can drag the individual tabs around, when you can rename the tabs with right click, not have to mess with programmatic title manipulations, and when you can drag the whole window around by the area above the tabs.

Now that would be news worthy.

Agree with @BernierCR. This update is an improvement, but it still doesn't behave like other tabbed applications.

For example, in chrome, you can drag the window by clicking the small space above any tab. That still doesn't work in the terminal.

image

Was this page helpful?
0 / 5 - 0 ratings