Skip to content
Snippets Groups Projects
Commit 62b34c61 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Support ALT-Left/ALR-Right for scaling adjustment in X11 mode.

parent b4187588
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2192 passed
......@@ -980,6 +980,10 @@ static int x11_event(XEvent *ev)
nlock = 1;
case XK_Left:
case XK_KP_Left:
if (ev->xkey.state & Mod1Mask) {
if (x_cvstat.scaling > 1)
x_cvstat.scaling--;
}
scan = 75;
goto docode;
......@@ -995,6 +999,10 @@ static int x11_event(XEvent *ev)
case XK_Right:
case XK_KP_Right:
scan = 77;
if (ev->xkey.state & Mod1Mask) {
if (x_cvstat.scaling < 7)
x_cvstat.scaling++;
}
goto docode;
case XK_KP_Add:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment