-
Notifications
You must be signed in to change notification settings - Fork 45
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
Problem if increasing font size in Vim (and others) #10
Comments
That's odd, resizing is working fine for me. Maybe your window manager |
Interesting, I'm using Awesome myself (on Debian) and it's working fine for me there, both in floating and tiled mode. I don't have Gnome Shell available at the moment to test that unfortunately, but it could be a bug in that. What version of Awesome are you using? And what happens if you press Ctrl-L in Vim? |
I just had an idea: could you try adding the line
at the end of the subroutine |
Have you tried the refresh change? I'm curious whether that actually fixes it. |
Sorry, I missed your answer… I added it to line 149 of the script, just before the closing braces of Thanks for your help ! |
Oh. Well, in that case I'm not sure I can actually fix this from within the script, sorry. I will have a look whether there's a way to maybe send an X request that does something useful but I can't promise anything. |
OK. I'll update this issue if I find anything else. Thank you ! On 24 mars 2014 11:46:20 UTC+01:00, Jan Larres
|
I have the same issue , is there a fix ? All that it is needed is a "refresh" . I use the tabbedex plugin in urxvt and when I change tab and then come back everything resizes perfectly . Please let me know if there is a fix for this ? I think a urxvt refresh after font increase/decrease should solve the problem . Thanks ! |
I still haven't been able to reproduce this unfortunately. Could you give some details about your setup like your window manager, your urxvt and vim configuration and version and such? |
I have the same problem, using i3 window manager. |
Switching from stacked to floating and back causes window reshape and text fits to terminal and font color size. |
Same thing, recently moved to i3wm and still having the same problem. Window needs a reshape to recover its state. |
I've now tried to reproduce it with awesome (3.5), i3 (4.8) and dwm (6.0), all with urxvt 9.21. It worked fine for me in all of them. Maybe it was a bug in urxvt that got fixed? |
I am using urxvt 9.21 (from Arch package) and i3 4.10.2 (idem). I updated the perl font-size script. Steps:
Maximizing / restoring the window restore its behaviour, keeping track of the font-size. Thanks |
FWIW, the script works fine here. arch + urxvt 9.22 + vim 7.4 (patches 1-1639) + bspwm 0.9-126 Perhaps it's a font thing? I'm using |
I'm gonna add my .02$ here. Yes, there's a problem. After changing font size, terminal doesn't send to running software "hey, I've changed my size". If you for example run mc and than call perl:font-size:increase, mc doesn't "know" that terminal now has different numer of rows/cols and therefore draws itself outside the screen. You have to resize urxvt or toggle fullscreen, so "size changed" signal is sent. $term->want_refresh; at the end of fonts_change_size(), is there any other way to force it? maybe resize the window to the same size? |
Ok, some extra info about it. After some tweaks with my However, I do not know what is specific with tabbedex. @majutsushi let me know if I can try something more to help you tackling this issue. |
Damn, that's true. Without tabbedex everything is OK. Well… tabbedex is more important than this glitch with urxvt-font-size. |
Sure. Still, I'd like to narrow down the issue so that it could be fixed on either side, in tabbedex or urxvt-font-size, whichever is faulty. |
Interesting, I'm actually finally able to reproduce this with the standard |
I also have this issue, but without tabs. I think @manwe-pl's point about signaling the client is correct. |
Yes, some kind of signalling is missing somewhere. But even after looking through the urxvt Perl API several times and experimenting a bit I haven't found any way to make this work from the context of this script. I'd be happy to be proven wrong, though. The API docs are a bit light on how the X11-derived calls work so it's entirely possible that I missed something. |
An old thread, and nothing useful to add here but I will say:
OH HEY, I LEARNED TO READ
Indeed, disabling |
Sorry for bumping this very old thread, but I have a workaround for this issue. --- src/main.C
+++ src/main.C
@@ -876,9 +876,8 @@
#endif
}
- if (parent)
{
+ resize_all_windows (szHint.width, szHint.height, 1);
- resize_all_windows (0, 0, 0);
scr_remap_chars ();
scr_touch (true);
} |
Works great, thank you! |
thank you @9ary this is just what i needed :-). |
Hi,
I've a problem with this extension : the aspect of the window is not computed again, in some sort, when I increase the font size in urxvt. I have to manually resize the window for the shape to be correct.
For instance, if I increase the font size in Vim, the bottom of the window disappears and I can't see the prompt anymore. I have to manually resize the window for the Vim window to adapt to my urxvt window.
Is there a way to fix this ?
Thanks
The text was updated successfully, but these errors were encountered: