Commit 70d310b
committed
Adapt tcore window/clipboard to tizen-core-wl 0.1.34 and harden init
tizen_core_wl_get_connected_display() was removed in tizen-core-wl 0.1.34.
The clipboard view-mode path now opens its own display connection via
display_create()/display_connect() (display cache shares the same core,
so it is equivalent), tracks ownership, and disconnects/destroys/shuts
down the connection it owns. This also fixes a pre-existing leak on that
path.
Fix several robustness issues surfaced in review:
- TizenClipboard::SendData(): loop write() to handle partial writes and
EINTR instead of dropping clipboard data on short writes.
- CreateWindow(): check tizen_core_wl_display_sync()/get_event() return
values and bail out instead of proceeding with an invalid event handle.
- UpdateFlutterCursor(): drop the TV_PROFILE branch that called the seat
cursor setters with a null seat handle.
- Route all event-listener registration through an AddEventListener()
helper that checks the return value and stores the handle, removing the
reused-listener variable that could double-push a stale handle on
failure.
Verified: builds for arm/arm64 Tizen 11 (--use-tcore) and runs on a
Tizen 11 arm64 device (window creation, input, and listeners confirmed
via dlog).1 parent 02d7fa6 commit 70d310b
4 files changed
Lines changed: 86 additions & 49 deletions
File tree
- flutter/shell/platform/tizen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
35 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
| |||
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
66 | 86 | | |
67 | 87 | | |
68 | 88 | | |
| |||
101 | 121 | | |
102 | 122 | | |
103 | 123 | | |
104 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
105 | 138 | | |
106 | 139 | | |
107 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
215 | 219 | | |
216 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
442 | | - | |
| 450 | + | |
| 451 | + | |
443 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
444 | 460 | | |
| 461 | + | |
445 | 462 | | |
446 | | - | |
447 | | - | |
| 463 | + | |
| 464 | + | |
448 | 465 | | |
449 | 466 | | |
450 | 467 | | |
| |||
467 | 484 | | |
468 | 485 | | |
469 | 486 | | |
470 | | - | |
471 | | - | |
472 | | - | |
| 487 | + | |
473 | 488 | | |
474 | 489 | | |
475 | 490 | | |
476 | | - | |
477 | | - | |
| 491 | + | |
| 492 | + | |
478 | 493 | | |
479 | 494 | | |
480 | 495 | | |
| |||
494 | 509 | | |
495 | 510 | | |
496 | 511 | | |
497 | | - | |
498 | | - | |
499 | | - | |
| 512 | + | |
500 | 513 | | |
501 | 514 | | |
502 | 515 | | |
503 | | - | |
504 | | - | |
| 516 | + | |
| 517 | + | |
505 | 518 | | |
506 | 519 | | |
507 | 520 | | |
| |||
543 | 556 | | |
544 | 557 | | |
545 | 558 | | |
546 | | - | |
547 | | - | |
548 | | - | |
| 559 | + | |
549 | 560 | | |
550 | 561 | | |
551 | | - | |
552 | | - | |
| 562 | + | |
| 563 | + | |
553 | 564 | | |
554 | 565 | | |
555 | 566 | | |
| |||
572 | 583 | | |
573 | 584 | | |
574 | 585 | | |
575 | | - | |
576 | | - | |
577 | | - | |
| 586 | + | |
578 | 587 | | |
579 | 588 | | |
580 | | - | |
581 | | - | |
| 589 | + | |
| 590 | + | |
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| |||
599 | 608 | | |
600 | 609 | | |
601 | 610 | | |
602 | | - | |
603 | | - | |
604 | | - | |
| 611 | + | |
605 | 612 | | |
606 | 613 | | |
607 | | - | |
608 | | - | |
| 614 | + | |
| 615 | + | |
609 | 616 | | |
610 | 617 | | |
611 | 618 | | |
| |||
634 | 641 | | |
635 | 642 | | |
636 | 643 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 644 | + | |
640 | 645 | | |
641 | 646 | | |
642 | | - | |
643 | | - | |
| 647 | + | |
| 648 | + | |
644 | 649 | | |
645 | 650 | | |
646 | 651 | | |
| |||
689 | 694 | | |
690 | 695 | | |
691 | 696 | | |
692 | | - | |
693 | | - | |
694 | | - | |
| 697 | + | |
695 | 698 | | |
696 | 699 | | |
697 | | - | |
698 | | - | |
| 700 | + | |
| 701 | + | |
699 | 702 | | |
700 | 703 | | |
701 | 704 | | |
| |||
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
736 | | - | |
737 | | - | |
738 | | - | |
| 739 | + | |
739 | 740 | | |
740 | 741 | | |
741 | 742 | | |
| |||
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
913 | | - | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
0 commit comments