-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GTK): pointer events in wrong locations using Wayland
For GTK applications using Wayland the title bar is rendered by the window itself and not by the composer. And it seems to me that GTK counts the title bar as part of the window and uses it to trigger the window events, leading to erroneous considerations about the size and location of pointers in the area where it is used to draw the components. The fix adds a GtkEventBox in the window, instead of use the window events we will be based on the events of the GtkEventBox which we can assure that the GTK will take into account the title bar. Related-to: #5706 Signed-off-by: Matheus Castello <matheus@castello.eng.br>
- Loading branch information
1 parent
05ec549
commit a7b59c0
Showing
3 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters