Commit ee7eda5
Use known width and height of the shell instead of asking
GDK.gdk_window_get_frame_extents (window, rect).
For GDK.gdk_window_get_frame_extents (window, rect) to return correct
values shell should be open. Once SWT asks GTK to show the shell via
Native calls it takes sometime to open the shell.
On high performance machines adjustTrip is asking GTK to give it width
and height before it has completely opened the shell. This results in
returning default size.(which is {0,0,1,1})
So We can use the height and width which we already know when opening
the shell.
Fixes #11611 parent 5b437ee commit ee7eda5
File tree
2 files changed
+89
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets
- tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets
2 files changed
+89
-5
lines changedLines changed: 32 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
483 | 496 | | |
484 | 497 | | |
485 | 498 | | |
486 | 499 | | |
487 | 500 | | |
488 | | - | |
489 | 501 | | |
| 502 | + | |
| 503 | + | |
490 | 504 | | |
491 | 505 | | |
492 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
493 | 516 | | |
494 | | - | |
495 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
496 | 521 | | |
497 | 522 | | |
498 | 523 | | |
| |||
2936 | 2961 | | |
2937 | 2962 | | |
2938 | 2963 | | |
| 2964 | + | |
| 2965 | + | |
2939 | 2966 | | |
2940 | 2967 | | |
2941 | 2968 | | |
| |||
2975 | 3002 | | |
2976 | 3003 | | |
2977 | 3004 | | |
2978 | | - | |
| 3005 | + | |
2979 | 3006 | | |
2980 | 3007 | | |
2981 | 3008 | | |
| |||
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments