Skip to content

Commit

Permalink
Adds dummy window menu action.
Browse files Browse the repository at this point in the history
  • Loading branch information
phkaeser committed Dec 6, 2024
1 parent cb433f0 commit e01d14c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/xdg_toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@ wlmtk_window_t *wlmtk_window_create_from_xdg_toplevel(
bs_log(BS_INFO, "Created window %p for wlmtk XDG toplevel surface %p",
wlmtk_window_ptr, surface_ptr);

// FIXME: Create these.
// Maximize / Unmaximize
// Fullscreen (if possible)
// Iconify
// Shade
// Move to workspace ...
// Close
wlmaker_action_item_t *ai_ptr = wlmaker_action_item_create(
"Text",
&server_ptr->style.menu.item,
0,
server_ptr,
server_ptr->env_ptr);
wlmtk_menu_add_item(
wlmtk_window_menu(wlmtk_window_ptr),
wlmaker_action_item_menu_item(ai_ptr));

return wlmtk_window_ptr;
}

Expand Down

0 comments on commit e01d14c

Please sign in to comment.