diff options
| author | bt <bt@rctt.net> | 2026-02-20 16:04:44 +0100 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-02-24 22:55:48 +0100 |
| commit | e14493abb20ab0c808f109bb56aaf141ad08d178 (patch) | |
| tree | fbfed0aae4d4cca733a2ecbcb7fa92c2a35cfeb2 /src/cmd/devdraw/mac-screen.m | |
| parent | cb7001c8d27f22f7229be302f53012bb1db52418 (diff) | |
| download | plan9port-patch.tar.gz plan9port-patch.zip | |
Custom shortcuts and other minor changespatch
Diffstat (limited to 'src/cmd/devdraw/mac-screen.m')
| -rw-r--r-- | src/cmd/devdraw/mac-screen.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m index 6abdee11..c5760ddc 100644 --- a/src/cmd/devdraw/mac-screen.m +++ b/src/cmd/devdraw/mac-screen.m @@ -635,15 +635,15 @@ rpc_resizewindow(Client *c, Rectangle r) x = 0; if(m & ~omod & NSEventModifierFlagControl) x = 1; - if(m & ~omod & NSEventModifierFlagOption) - x = 2; if(m & ~omod & NSEventModifierFlagCommand) + x = 2; + if(m & ~omod & NSEventModifierFlagOption) x = 4; b |= x; if(m & NSEventModifierFlagShift) b <<= 5; [self sendmouse:b]; - }else if(m & ~omod & NSEventModifierFlagOption) + }else if(m & ~omod & NSEventModifierFlagCommand) gfx_keystroke(self.client, Kalt); omod = m; @@ -700,11 +700,11 @@ rpc_resizewindow(Client *c, Rectangle r) m = [e modifierFlags]; if(b == 1){ - if(m & NSEventModifierFlagOption){ + if(m & NSEventModifierFlagCommand){ gfx_abortcompose(self.client); b = 2; }else - if(m & NSEventModifierFlagCommand) + if(m & NSEventModifierFlagOption) b = 4; } if(m & NSEventModifierFlagShift) |
