Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5434fc5
)
Reset xterm font sizes on startup in case we restarted with scaled fonts.
author
Ryan McBride
<mcbride@countersiege.com>
Wed, 11 Feb 2009 07:24:02 +0000
(07:24 +0000)
committer
Ryan McBride
<mcbride@countersiege.com>
Wed, 11 Feb 2009 07:24:02 +0000
(07:24 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
40e7ef7
..
985cda1
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-2317,6
+2317,14
@@
manage_window(Window id)
XConfigureWindow(display, win->id, mask, &wc);
}
XConfigureWindow(display, win->id, mask, &wc);
}
+ /* Reset font sizes (the bruteforce way; no default keybinding). */
+ if (win->quirks & SWM_Q_XTERM_FONTADJ) {
+ for (i = 0; i < SWM_MAX_FONT_STEPS; i++)
+ fake_keypress(win, XK_KP_Subtract, ShiftMask);
+ for (i = 0; i < SWM_MAX_FONT_STEPS; i++)
+ fake_keypress(win, XK_KP_Add, ShiftMask);
+ }
+
XSelectInput(display, id, EnterWindowMask | FocusChangeMask |
PropertyChangeMask | StructureNotifyMask);
XSelectInput(display, id, EnterWindowMask | FocusChangeMask |
PropertyChangeMask | StructureNotifyMask);