Changeset 0d00e53 in mainline for uspace/srv/hid
- Timestamp:
- 2024-11-07T10:38:29Z (11 months ago)
- 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)
- Location:
- uspace/srv/hid/display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/seat.c
rad9e225 r0d00e53 492 492 /* Focus window on button press */ 493 493 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) { 495 496 ds_seat_set_focus(seat, wnd); 496 497 } -
uspace/srv/hid/display/window.c
rad9e225 r0d00e53 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 153 153 154 154 /* Is this a popup window? */ 155 if ((params->flags & wndf_popup) != 0) 155 if ((params->flags & wndf_popup) != 0) { 156 156 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 } 159 161 160 162 /* Is this window a panel? */
Note:
See TracChangeset
for help on using the changeset viewer.