Geoffrey McRae
cfd2e6ff32
[client] x11: check if the EWMH atoms exist before using them
2022-02-10 13:35:19 +11:00
Netboy3
e0c0451b52
[client] x11: Add inline icon
...
Many X11 window managers will present an application on their
taskbar as a combination of the application name and an icon
imagery pulled from the X-Property _NET_WM_ICON. Applications
built under frameworks such as Qt or GTK have this property
populated by the framework. This commit adds the Atom _NET_WM_ICON
and populates it with a 64x64 icon of Looking Glass.
2022-02-09 12:07:55 +11:00
Tudor Brindus
e1ac838796
[client] wayland: use wayland-protocols
from submodule
2022-02-08 16:05:51 +11:00
Tudor Brindus
969ac4d1d1
[client] wayland: activate our window if we're allowed
2022-02-08 14:54:55 +11:00
Tudor Brindus
da548e3858
[client] ds: expose activation requesting
2022-02-08 14:54:55 +11:00
Tudor Brindus
21a349343b
[client] wayland: implement activation request
2022-02-08 14:54:55 +11:00
Tudor Brindus
4ee6bdf198
[client] wayland: bind xdg_activation_v1
when available
2022-02-08 14:54:55 +11:00
Tudor Brindus
b13582a911
[client] wayland: build xdg-activation-v1 header
2022-02-08 14:54:55 +11:00
Geoffrey McRae
05e363e009
[client] x11: cleanup duplicated code
2022-01-26 15:30:38 +11:00
Geoffrey McRae
e17b289759
[client] x11: sync the mouse on meta resize
2022-01-26 14:55:30 +11:00
Geoffrey McRae
79e986cc60
[client] x11: fix failure to unfocus when performing meta resize/move
2022-01-26 14:43:11 +11:00
Geoffrey McRae
464fee3e20
[client] overlay/graphs: allow the graph to have a custom title format
2022-01-17 22:08:56 +11:00
Chris Spencer
786a252b23
[client] x11: don't use primary selection for clipboard
...
This behaviour is more consistent with other applications where text
selections do not influence explicit clipboard operations.
2022-01-13 08:18:56 +11:00
Geoffrey McRae
952ebea2c5
[all] refresh copyright dates
2022-01-05 19:42:46 +11:00
Quantum
eea0ced627
[client] wayland: handle NULL wl_keyboard on destruction
2021-12-24 10:22:23 +11:00
Quantum
94684324f4
[client] wayland: don't create confines on uncapture without wl_pointer
2021-12-24 10:17:16 +11:00
Quantum
194afa2d75
[client] wayland: create wl_relative_pointer when creating wl_pointer
2021-12-24 10:17:16 +11:00
Quantum
d96b2ef1fb
[client] wayland: clean up objects when wl_pointer disappears
2021-12-24 10:17:16 +11:00
Geoffrey McRae
ad40ea4195
[client] x11: don't override the focus state if no EWMH focus support
2021-12-22 11:25:54 +11:00
Geoffrey McRae
65948034dd
[client] x11: be more agressive grabbing the pointer
2021-12-21 21:51:43 +11:00
Geoffrey McRae
27c7054505
[client] x11: protect against msc overflow with jitRender
2021-12-21 10:47:55 +11:00
Geoffrey McRae
02b59ba8f7
[client] x11: don't use the atomic msc value when we already have it
2021-12-21 10:47:11 +11:00
Quantum
a5727262cd
[client] wayland: make cursor change work without wl_pointer
2021-12-16 11:36:39 +11:00
Geoffrey McRae
5f80ce91e8
[client] x11: fix broken grab retry logic
2021-12-15 01:43:09 +11:00
Geoffrey McRae
b6fa296d5a
[client] x11: work around issue with desktop switch on i3
...
For an unknwon reason when LG is on another desktop (hidden) and the
user switches to that desktop, the first attempt to grab the pointer
results in a GrabFrozen result. This adds some simple retry logic to
attempt again after a short (100ms) delay which seems to resolve the
issue.
2021-12-15 00:23:44 +11:00
Geoffrey McRae
2e170ad06f
[client] x11: properly detect WMEH support for focus events
2021-12-15 00:17:33 +11:00
Geoffrey McRae
88a95aeab0
[client] x11: fix issue with grab when clicking on the unfocused window
...
Fixes #856
2021-12-10 05:27:58 +11:00
Geoffrey McRae
9780f51558
[client] x11: fix failure to set window position correctly when set
2021-11-30 13:04:39 +11:00
Geoffrey McRae
9c5e34df0f
[client] x11: handle EINTR properly in epoll loop
2021-10-20 15:40:50 +11:00
SytheZN
12321a8880
[client] wayland: implement resizing for libdecor
2021-10-14 18:17:00 +11:00
Quantum
12840a8324
[client] x11: load glXSwapIntervalEXT dynamically
...
The Linux OpenGL ABI does not guarantee that glXSwapIntervalEXT will be
exported statically from any library, and indeed on some systems this
function does not link at load time, e.g. with amdgpu-pro. All other
GLX functions that we use are from GLX 1.0, which is guaranteed to be
exported statically.
This commit solves this issue by using glXGetProcAddressARB to load the
function. Note that only the ARB version of glXGetProcAddress is
guaranteed to exist by the Linux OpenGL ABI, which is why we must use
it.
2021-09-29 17:47:36 +10:00
Quantum
72f3a9f3cf
[client] wayland: free presentation objects
...
Since the display server owns a graph, it was necessary to move the overlay
graphs destruction so that it happens after display server destruction.
2021-09-11 11:52:52 +10:00
Geoffrey McRae
ab3738624f
[client] x11: reduce the scope of deltats
2021-09-11 10:11:00 +10:00
Geoffrey McRae
25ed3632f7
[client] x11: remove dead code
2021-09-11 10:06:52 +10:00
Geoffrey McRae
3adb7ca4b2
[client] wayland: fix possible memory leak
2021-09-11 10:03:27 +10:00
Geoffrey McRae
4b3a79c110
[client] x11: remove print from debugging
2021-08-19 21:35:54 +10:00
Geoffrey McRae
2d470b8deb
[client] x11: filter out virtual/grabbed XIEnterEvents
2021-08-19 21:29:03 +10:00
Quantum
1021c9ce92
[client] x11: implement keyboard modifiers
2021-08-19 21:28:21 +10:00
Quantum
ce3f11fd40
[client] x11: implement keyboard typing
2021-08-19 21:28:21 +10:00
Quantum
81c38e825c
[client] remove all casts around malloc
...
The cast is unnecessary in C and should be removed to avoid clutter.
2021-08-16 16:26:58 +10:00
Tudor Brindus
14ad83c6b8
[client] use variable-relative sizeof where possible
2021-08-16 16:22:55 +10:00
Quantum
7cd0c55847
[client] wayland: support high DPI cursors when needed
2021-08-15 09:49:38 +10:00
Quantum
2dd1ad53f8
[client] wayland: respect XCURSOR_THEME and XCURSOR_SIZE env variables
2021-08-15 09:46:55 +10:00
Quantum
d35c448058
[client] wayland: set keyboard LED state when changed
2021-08-15 09:46:31 +10:00
Quantum
7045760490
[client] wayland: add keyboard typing handling with xkbcommon
2021-08-14 14:44:26 +10:00
Quantum
579f998519
[client] all: replace assert with DEBUG_ASSERT
2021-08-14 12:19:07 +10:00
Quantum
22bbc2457e
[client] wayland: fix deadlock when using wayland:warpSupport=no
2021-08-11 19:01:18 +10:00
Geoffrey McRae
1128eb0e84
[client] x11: don't hang when there are no message pending
2021-08-10 01:47:03 +10:00
Geoffrey McRae
1fd726eed7
[client] x11: be less sensitive to frame skips
...
External events like launching other applications can cause latency
spikes while X11 initializes the application, we should only start
adjusting our delay if we see excessive skips over a 1s period.
2021-08-09 15:51:01 +10:00
Geoffrey McRae
bc7e59c9d7
[client] x11: prevent present event loop underruns
...
Queue up and maintain a list of presentation timestamps to avoid spikes
caused by X11 event processing latency.
2021-08-09 15:24:12 +10:00