Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not resize the window when hiding the tab bar #17

Open
madx opened this issue Jan 2, 2013 · 5 comments
Open

Do not resize the window when hiding the tab bar #17

madx opened this issue Jan 2, 2013 · 5 comments
Assignees

Comments

@madx
Copy link

madx commented Jan 2, 2013

I've got TABBAR_AUTOHIDE set to TRUE, and when I close the last tab but one, the window gets automatically resized to its default size.

Steps to reproduce:

  1. Open a tab
  2. Resize the window
  3. Close the opened tab

I think this is a bad behavior

@caleb-
Copy link
Owner

caleb- commented Jan 10, 2013

Sorry for replying so late. I have not login these days.
I think you are using GTK+ 3.x.
Resizing behavior of GTK+ 3.x is very strange.
Many VTE-based terminal emulators are suffering various weird window-resizing bugs.
(gnome-terminal only works under gnome. when you use it in other window managers, its window-resizing behavior is very buggy.)

evilvte basically do not handle any window-resizing event. I just use some workaround so it can meet my needs.

If you want GTK+ 3.x with VTE, I think you can try ROXTerm.

@ghost ghost assigned caleb- Jan 10, 2013
@madx
Copy link
Author

madx commented Jan 10, 2013

I'm using GTK+ 3.x indeed, with Gnome 3.6. Do you have any pointers on how this could be fixed or worked around? I may take some of my spare time to try and find a solution.

As to switching to ROXTerm, it seems to have way too much features, and I'm rather considering using tmux instead of tabs.

@caleb-
Copy link
Owner

caleb- commented Jan 10, 2013

The problem is resizing of VTE and resizing of GTK_NOTEBOOK(tabs of GTK+) do not co-work well.
The problem was also in GTK+ 2.x, but many terminal emulators use various workarounds and magic tricks to overcome it.
(evilvte do not handle it though. :-P)

However, GTK+ 3.x changed its window-resizing / window-size-announcing behavior. Workarounds for GTK+ 2.x does not work any more.

If you plan to use tmux with VTE, I think you may turn off tabs.

  1. evilvte could disable tabs. (#define TAB FALSE)
  2. libVTE itself has a demo terminal emulator called vte2_90. It has no tabs (no GTK_NOTEBOOK). However, some binary distributions does not ship it to users. You may have to compile it from libVTE source.
  3. try demo.c listed in http://www.calno.com/evilvte
    It supports GTK+ 3.x and is a mininal barely functional VTE terminal emulator.

@madx
Copy link
Author

madx commented Jan 10, 2013

Thanks for you answer, I'll stick with disabling tabs in evilvte, and maybe investigate further in this notebook/VTE issue.

I also noticed that I'm not able to resize the terminal smaller than 80x24 (I've not tried to tweak DEFAULT_TERMINAL_SIZE yet). May this be related to this issue?

@caleb-
Copy link
Owner

caleb- commented Jan 12, 2013

Yes, a workaround for GTK+ 3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants