Commit 6a6d733
committed
Don't try to send grants for not realized windows
We rely on composite redirect mode of the X server to get per window
pixmaps. Those are setup/teared-down in compRealizeWindow/
compUnrealizeWindow (via compCheckRedirect).
So not realized windows don't have a per window pixmap. Sending grant
refs for them was always broken since we didn't send the offset into the
screen pixmap in those cases. But with the recent change to not allocate
grant refs for the screen pixmap this leads to a noticable error
message.
So don't try to send grant refs for not realized windows. This means
that the configure before mapping will not contiain grant refs. But when
we map the window we will get a damage event because of the new pixmap
compRealizeWindow has allocated and send them then. So this should be
fine.1 parent fb542b7 commit 6a6d733
2 files changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
| 474 | + | |
473 | 475 | | |
474 | 476 | | |
475 | 477 | | |
| |||
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
| 879 | + | |
877 | 880 | | |
878 | 881 | | |
879 | 882 | | |
| |||
898 | 901 | | |
899 | 902 | | |
900 | 903 | | |
| 904 | + | |
901 | 905 | | |
902 | 906 | | |
| 907 | + | |
| 908 | + | |
903 | 909 | | |
904 | 910 | | |
| 911 | + | |
905 | 912 | | |
906 | 913 | | |
907 | 914 | | |
| |||
945 | 952 | | |
946 | 953 | | |
947 | 954 | | |
| 955 | + | |
948 | 956 | | |
949 | | - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
950 | 960 | | |
951 | 961 | | |
952 | 962 | | |
| 963 | + | |
953 | 964 | | |
954 | | - | |
| 965 | + | |
955 | 966 | | |
956 | 967 | | |
957 | 968 | | |
958 | 969 | | |
959 | 970 | | |
| 971 | + | |
960 | 972 | | |
961 | 973 | | |
962 | 974 | | |
| |||
999 | 1011 | | |
1000 | 1012 | | |
1001 | 1013 | | |
1002 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1003 | 1018 | | |
1004 | 1019 | | |
1005 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
603 | 616 | | |
604 | 617 | | |
605 | 618 | | |
| |||
0 commit comments