Changeset 46a47c0 in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2023-01-16T20:34:01Z (21 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0ae23f
- Parents:
- b3eeae5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
rb3eeae5 r46a47c0 680 680 errno_t ds_window_post_focus_event(ds_window_t *wnd) 681 681 { 682 display_wnd_focus_ev_t efocus; 682 683 errno_t rc; 683 684 ds_wmclient_t *wmclient; … … 685 686 log_msg(LOG_DEFAULT, LVL_DEBUG, "ds_window_post_focus_event"); 686 687 687 rc = ds_client_post_focus_event(wnd->client, wnd); 688 /* Increase focus counter */ 689 ++wnd->nfocus; 690 efocus.nfocus = wnd->nfocus; 691 692 rc = ds_client_post_focus_event(wnd->client, wnd, &efocus); 688 693 if (rc != EOK) 689 694 return rc; 690 691 /* Increase focus counter */692 ++wnd->nfocus;693 695 694 696 /* Notify window managers about window information change */ … … 709 711 errno_t ds_window_post_unfocus_event(ds_window_t *wnd) 710 712 { 713 display_wnd_unfocus_ev_t eunfocus; 711 714 errno_t rc; 712 715 ds_wmclient_t *wmclient; … … 714 717 log_msg(LOG_DEFAULT, LVL_DEBUG, "ds_window_post_unfocus_event"); 715 718 716 rc = ds_client_post_unfocus_event(wnd->client, wnd); 719 /* Decrease focus counter */ 720 --wnd->nfocus; 721 eunfocus.nfocus = wnd->nfocus; 722 723 rc = ds_client_post_unfocus_event(wnd->client, wnd, &eunfocus); 717 724 if (rc != EOK) 718 725 return rc; 719 720 /* Decrease focus counter */721 --wnd->nfocus;722 726 723 727 /* Notify window managers about window information change */
Note:
See TracChangeset
for help on using the changeset viewer.