Changeset 0415776 in mainline
- Timestamp:
- 2022-05-24T14:21:32Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 174be87
- Parents:
- 8b22d44
- git-author:
- Jiri Svoboda <jiri@…> (2022-05-23 17:21:15)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-05-24 14:21:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
r8b22d44 r0415776 400 400 ui_wdecor_destroy(window->wdecor); 401 401 ui_resource_destroy(window->res); 402 if ( 0 &&window->app_mgc != NULL)402 if (window->app_mgc != NULL) 403 403 mem_gc_delete(window->app_mgc); 404 if ( 0 &&window->app_bmp != NULL)404 if (window->app_bmp != NULL) 405 405 gfx_bitmap_destroy(window->app_bmp); 406 406 if (window->mgc != NULL) { … … 413 413 display_window_destroy(window->dwindow); 414 414 415 free(window);416 417 415 /* Need to repaint if windows are emulated */ 418 416 if (ui_is_fullscreen(ui)) { … … 424 422 (void) console_set_caption(ui->console, ""); 425 423 } 424 425 free(window); 426 426 } 427 427 … … 810 810 { 811 811 ui_window_t *window = (ui_window_t *) arg; 812 813 ui_lock(window->ui); 812 ui_t *ui = window->ui; 813 814 ui_lock(ui); 814 815 815 816 if (window->wdecor != NULL) { … … 819 820 820 821 ui_window_send_focus(window); 821 ui_unlock( window->ui);822 ui_unlock(ui); 822 823 } 823 824 … … 826 827 { 827 828 ui_window_t *window = (ui_window_t *) arg; 828 829 ui_lock(window->ui); 829 ui_t *ui = window->ui; 830 831 ui_lock(ui); 830 832 ui_window_send_kbd(window, kbd_event); 831 ui_unlock( window->ui);833 ui_unlock(ui); 832 834 } 833 835 … … 836 838 { 837 839 ui_window_t *window = (ui_window_t *) arg; 840 ui_t *ui = window->ui; 841 ui_evclaim_t claim; 838 842 839 843 /* Make sure we don't process events until fully initialized */ … … 841 845 return; 842 846 843 ui_lock(window->ui); 844 ui_wdecor_pos_event(window->wdecor, event); 847 ui_lock(ui); 848 849 claim = ui_wdecor_pos_event(window->wdecor, event); 850 if (claim == ui_claimed) { 851 ui_unlock(ui); 852 return; 853 } 854 845 855 ui_window_send_pos(window, event); 846 ui_unlock( window->ui);856 ui_unlock(ui); 847 857 } 848 858 … … 851 861 { 852 862 ui_window_t *window = (ui_window_t *) arg; 863 ui_t *ui = window->ui; 853 864 854 865 /* Make sure we don't process events until fully initialized */ … … 859 870 return; 860 871 861 ui_lock( window->ui);872 ui_lock(ui); 862 873 (void) ui_window_resize(window, rect); 863 874 (void) ui_window_paint(window); 864 ui_unlock( window->ui);875 ui_unlock(ui); 865 876 } 866 877 … … 869 880 { 870 881 ui_window_t *window = (ui_window_t *) arg; 871 872 ui_lock(window->ui); 882 ui_t *ui = window->ui; 883 884 ui_lock(ui); 873 885 874 886 if (window->wdecor != NULL) { … … 878 890 879 891 ui_window_send_unfocus(window); 880 ui_unlock( window->ui);892 ui_unlock(ui); 881 893 } 882 894
Note:
See TracChangeset
for help on using the changeset viewer.