Use tab-bar/title bar for dragging window around #824

Closed
opened 2026-01-30 22:05:30 +00:00 by claunia · 14 comments
Owner

Originally created by @Paul-Weisser on GitHub (May 8, 2019).

Originally assigned to: @zadjii-msft on GitHub.

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

Originally created by @Paul-Weisser on GitHub (May 8, 2019). Originally assigned to: @zadjii-msft on GitHub. 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](https://user-images.githubusercontent.com/34196171/57354083-ccebfa80-716a-11e9-91ac-55747463a95c.png)
Author
Owner

@glen-84 commented on GitHub (May 8, 2019):

Duplicate of #528 (?).

@glen-84 commented on GitHub (May 8, 2019): Duplicate of #528 (?).
Author
Owner

@Paul-Weisser commented on GitHub (May 8, 2019):

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 commented on GitHub (May 8, 2019): > > > 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
Author
Owner

@oising commented on GitHub (May 8, 2019):

@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.

@oising commented on GitHub (May 8, 2019): @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.
Author
Owner

@Paul-Weisser commented on GitHub (May 8, 2019):

@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...

@Paul-Weisser commented on GitHub (May 8, 2019): > > > @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...
Author
Owner

@zadjii-msft commented on GitHub (May 8, 2019):

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.

@zadjii-msft commented on GitHub (May 8, 2019): 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.
Author
Owner

@zadjii-msft commented on GitHub (May 8, 2019):

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 commented on GitHub (May 8, 2019): 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.
Author
Owner

@adeolemon commented on GitHub (May 28, 2019):

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

@adeolemon commented on GitHub (May 28, 2019): @zadjii-msft does that mean the fix will require another Windows build?
Author
Owner

@fearthecowboy commented on GitHub (Jun 12, 2019):

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.

@fearthecowboy commented on GitHub (Jun 12, 2019): 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.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 14, 2019):

This'll be addressed by #929.

@DHowett-MSFT commented on GitHub (Jun 14, 2019): This'll be addressed by #929.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 14, 2019):

Moved into v0.3, the second public preview.

@DHowett-MSFT commented on GitHub (Jun 14, 2019): Moved into v0.3, the second public preview.
Author
Owner

@sandercox commented on GitHub (Jun 27, 2019):

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.

@sandercox commented on GitHub (Jun 27, 2019): 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.
Author
Owner

@ghost commented on GitHub (Aug 3, 2019):

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

Handy links:

@ghost commented on GitHub (Aug 3, 2019): :tada:This issue was addressed in #1948, which has now been successfully released as `Windows Terminal Preview v0.3.2142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.3.2142.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Author
Owner

@BernierCR commented on GitHub (Aug 5, 2019):

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.

@BernierCR commented on GitHub (Aug 5, 2019): 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.
Author
Owner

@gregpakes commented on GitHub (Aug 5, 2019):

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

@gregpakes commented on GitHub (Aug 5, 2019): 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](https://user-images.githubusercontent.com/102243/62498065-4f935d00-b821-11e9-8bd5-c5bcac3fa85b.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#824