Changeset 5d380b6 in mainline for uspace/lib/ui/private/menubar.h


Ignore:
Timestamp:
2023-01-20T11:50:41Z (23 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1f0a14
Parents:
6828a56
git-author:
Jiri Svoboda <jiri@…> (2023-01-20 19:50:21)
git-committer:
Jiri Svoboda <jiri@…> (2023-01-20 11:50:41)
Message:

Create menu windows in the correct seat

Add a mechanism to set the seat of a new display window, UI window,
UI popup - input device ID. This is set to the ID of the device which
activated the menu (mouse, keyboard). The display server determines
the correct seat from there.

This makes sure clicking outside closes the correct pop-up window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/private/menubar.h

    r6828a56 r5d380b6  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141#include <gfx/coord.h>
    4242#include <stdbool.h>
     43#include <types/common.h>
    4344#include <types/ui/menu.h>
    4445#include <types/ui/menubar.h>
     
    6566};
    6667
    67 extern void ui_menu_bar_select(ui_menu_bar_t *, ui_menu_t *, bool);
    68 extern void ui_menu_bar_left(ui_menu_bar_t *);
    69 extern void ui_menu_bar_right(ui_menu_bar_t *);
     68extern void ui_menu_bar_select(ui_menu_bar_t *, ui_menu_t *, bool, sysarg_t);
     69extern void ui_menu_bar_left(ui_menu_bar_t *, sysarg_t);
     70extern void ui_menu_bar_right(ui_menu_bar_t *, sysarg_t);
    7071extern ui_evclaim_t ui_menu_bar_key_press_unmod(ui_menu_bar_t *, kbd_event_t *);
    7172extern void ui_menu_bar_entry_rect(ui_menu_bar_t *, ui_menu_t *, gfx_rect_t *);
Note: See TracChangeset for help on using the changeset viewer.