Changeset b2261af0 in mainline


Ignore:
Timestamp:
2023-10-02T14:26:21Z (7 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e660378
Parents:
06a61fc
git-author:
Jiri Svoboda <jiri@…> (2023-10-01 17:26:18)
git-committer:
Jiri Svoboda <jiri@…> (2023-10-02 14:26:21)
Message:

Make sure sysmenu handle cannot be clicked if no titlebar

Even if the application forgot to clear ui_wds_sysmenu handle,
we should not handle the event if the window has no titlebar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/wdecor.c

    r06a61fc rb2261af0  
    11121112        ui_wdecor_get_geom(wdecor, &geom);
    11131113
    1114         if ((wdecor->style & ui_wds_sysmenu_hdl) != 0) {
     1114        if ((wdecor->style & ui_wds_titlebar ) != 0 &&
     1115            (wdecor->style & ui_wds_sysmenu_hdl) != 0) {
    11151116                if (event->type == POS_PRESS &&
    11161117                    gfx_pix_inside_rect(&pos, &geom.sysmenu_hdl_rect)) {
Note: See TracChangeset for help on using the changeset viewer.