Skip to content

Commit

Permalink
documentation: screenshot of miracle
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae committed Jan 6, 2024
1 parent b87e5b8 commit ff8f0ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ section below for the current status and direction.
The ultimate goal of this work is to build an entire desktop environment on top of this window manager, but that will remain a
concern for a different repository with a different timeline.

![miracle in action](./resources/screenshot.png "miracle in action")

# Building
**From Source**:
```sh
Expand Down
5 changes: 5 additions & 0 deletions USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
- `Meta + Down`: Select the window below the currently selected window
- `Meta + Left`: Select the window to the left of the currently selected window
- `Meta + Right`: Select the window to the right of the currently selected window
- `Meta + r`: Toggle resize mode on the active node
- `Left`: Resize to the left
- `Right`: Resize to the right
- `Up`: Resize upward
- `Down`: Resize downward

# Pointer
- Hovering over a window will select the window
Expand Down
Binary file added resources/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/miracle_window_management_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool MiracleWindowManagementPolicy::handle_keyboard_event(MirKeyboardEvent const
auto const scan_code = miral::toolkit::mir_keyboard_event_scan_code(event);
auto const modifiers = miral::toolkit::mir_keyboard_event_modifiers(event) & MODIFIER_MASK;

if (action == MirKeyboardAction::mir_keyboard_action_down && (modifiers & mir_input_event_modifier_alt))
if (action == MirKeyboardAction::mir_keyboard_action_down && (modifiers & mir_input_event_modifier_meta))
{
if (scan_code == KEY_ENTER)
{
Expand Down

0 comments on commit ff8f0ba

Please sign in to comment.