diff options
| author | Yuuki Harano | 2021-04-13 21:23:48 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-04-13 21:23:48 +0900 |
| commit | fb5f3e694b0f6e2bccfc2124555c986fdc409cd0 (patch) | |
| tree | 558b79b49ef02ded031605e2504590268a3957fe /src | |
| parent | 8c7453632e8f45ed65ce814eafc0a1af637774c1 (diff) | |
| download | emacs-fb5f3e694b0f6e2bccfc2124555c986fdc409cd0.tar.gz emacs-fb5f3e694b0f6e2bccfc2124555c986fdc409cd0.zip | |
Workaround touchscreen events are ignored on sway
On sway, gdk_device_get_window_at_position() in
xg_event_is_for_scrollbar always returns NULL, and all the touchscreen
press events are mishandled as on scrollbar.
We don't need to call xg_event_is_for_scrollbar, so removed the call.
* src/pgtkterm.c (button_event): Don't call xg_event_is_for_scrollbar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pgtkterm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 10a3999f70d..55c139fb7ca 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -6496,8 +6496,13 @@ button_event (GtkWidget * widget, GdkEvent * event, gpointer * user_data) | |||
| 6496 | } | 6496 | } |
| 6497 | } | 6497 | } |
| 6498 | 6498 | ||
| 6499 | /* xg_event_is_for_scrollbar() doesn't work correctly on sway, and | ||
| 6500 | * we shouldn't need it. | ||
| 6501 | */ | ||
| 6502 | #if 0 | ||
| 6499 | if (f && xg_event_is_for_scrollbar (f, event)) | 6503 | if (f && xg_event_is_for_scrollbar (f, event)) |
| 6500 | f = 0; | 6504 | f = 0; |
| 6505 | #endif | ||
| 6501 | 6506 | ||
| 6502 | if (f) | 6507 | if (f) |
| 6503 | { | 6508 | { |