aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/x11-screen.c
Commit message (Collapse)AuthorAgeFilesLines
* cmd/devdraw: handle X11 selections betterScott Schwartz2025-11-041-1/+2
| | | | | | | | | x11-screen.c accepts selection targets with the MIME type "text/plain;charset-UTF8", but it should do so case insensitively. The current code draws an error when working with xfce4-terminal 1.0.4, which sends lower case. To reproduce, run acme, snarf some text, then paste in the terminal. acme will report: acme: cannot handle selection request for 'text/plain;charset=utf-8' (590)
* devdraw: work around XWayland pointer warpingRuss Cox2025-10-091-0/+23
|
* cmd/devdraw: avoid use of X button state fieldRoger Peppe2025-03-291-51/+12
| | | | | | | | | | | | | | | | | | This bug is an intermittent annoyance and does not seem likely to be fixed soon. It means that every so often my acme becomes unusable because it behaves as if a mouse button is permanently set. Avoid that issue by keeping track of mouse button state directly. While we're about it, fix another annoying issue: under Linux the FocusOut event reset the kstate field but not the kbuttons field, meaning that the buttons state could inappropriately persist. This happened occasionally by accident, but was easy to reproduce: with the mouse button held down, drag outside the window and click Alt-Tab to switch away from the window. We see a KeyDown event followed by FocusOut but no KeyUp event. Change-Id: I3708316478c80c41806d7157ae9929c6cd84b662
* devdraw: handle shift of real mouse buttons correctlyRuss Cox2024-06-171-5/+18
|
* devdraw/x11: fix modifier key handling for some XkbOptionsXiao-Yong Jin2022-07-261-12/+31
| | | | | | | | | | | | | Certain XkbOptions in X11 would change keysyms for modifier keys between the key press and key release. For example, under the XkbOptions "grp:shifts_toggle", though shift keys remain Shift_L/R when pressed, they become ISO_Group_Next/Prev when released. This behavior makes devdraw unable to detect the release event correctly and as a result mouse button 1 click always interpreted as button 3 event after a shift key is used.
* devdraw: use indirect impl interface in x11Gabriel Diaz2020-05-181-0/+21
|
* devdraw: avoid deadlock in x11 resizeRuss Cox2020-01-151-0/+2
| | | | Fixes #347.
* devdraw: set windowrect correctly on x11 if window gets unexpected sizeRuss Cox2020-01-151-2/+2
| | | | Fixes #54.
* devdraw: notify window resize promptly on x11Russ Cox2020-01-141-8/+8
| | | | Fixes #339.
* devdraw: x11 working againRuss Cox2020-01-131-0/+1759
Need to think a bit more about locking, but overall it's a working devdraw. Multiclient mode may not be working but nothing is using it yet.