Changeset 0d00e53 in mainline for uspace/srv/hid


Ignore:
Timestamp:
2024-11-07T10:38:29Z (11 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
9a07ee3, 9e7e1dc
Parents:
ad9e225
git-author:
Jiri Svoboda <jiri@…> (2024-10-06 18:37:25)
git-committer:
Jiri Svoboda <jiri@…> (2024-11-07 10:38:29)
Message:

Shut down dialog

Location:
uspace/srv/hid/display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    rad9e225 r0d00e53  
    492492        /* Focus window on button press */
    493493        if (event->type == PTD_PRESS && event->btn_num == 1) {
    494                 if (wnd != NULL && (wnd->flags & wndf_popup) == 0) {
     494                if (wnd != NULL && (wnd->flags & wndf_popup) == 0 &&
     495                    (wnd->flags & wndf_nofocus) == 0) {
    495496                        ds_seat_set_focus(seat, wnd);
    496497                }
  • uspace/srv/hid/display/window.c

    rad9e225 r0d00e53  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    153153
    154154        /* Is this a popup window? */
    155         if ((params->flags & wndf_popup) != 0)
     155        if ((params->flags & wndf_popup) != 0) {
    156156                ds_seat_set_popup(seat, wnd);
    157         else
    158                 ds_seat_set_focus(seat, wnd);
     157        } else {
     158                if ((params->flags & wndf_nofocus) == 0)
     159                        ds_seat_set_focus(seat, wnd);
     160        }
    159161
    160162        /* Is this window a panel? */
Note: See TracChangeset for help on using the changeset viewer.