30 Commits

Author SHA1 Message Date
Nikos Tsipinakis
b77f76f02e
Merge pull request #854 from fwSmit/wayland-hidpi
wayland hidpi support
2021-05-26 20:31:50 +02:00
Nikos Tsipinakis
cf091bea37
Merge pull request #840 from fwSmit/master
Small fixes
2021-05-26 20:09:28 +02:00
fwsmit
ea531ca9ae wayland: Return the largest scale when output cannot be found
When follow mode != none dunst cannot detect what output is being used
to display the notification (yet). With this commit dunst falls back to
using the largest scale from any ouput. The compositor should scale the
buffer down again if the scale of the output is smaller that the used
scale.
2021-05-02 13:22:07 +02:00
fwsmit
e69adcefea wayland: Add better detection for the current output
When there's only one output, just return that output.
2021-05-02 13:21:48 +02:00
fwsmit
db5e6ce8f4 wayland: Add HiDPI support
This commit implements support for HiDPI rendering for wayland. X11
should be unaffected by this.
It is implemented by scaling everything that's rendered by a scale
factor that's obtained from the wayland protocol. All sizes before
rendering remain the same, so the same settings should provide the same
output for different scaling factors, only scaled by that factor.
2021-04-22 13:09:35 +02:00
fwsmit
aad4dbaf3d wayland: Some minor cleanup 2021-04-22 13:05:31 +02:00
fwsmit
98a61f0896 wayland: implement get_scale function for hidpi support 2021-04-22 13:04:49 +02:00
fwsmit
7c6620c92d wayland: Remove accidental if statement 2021-04-20 21:55:37 +02:00
fwsmit
af49b76586 wayland: fix NULL pointer dereference 2021-04-06 17:18:48 +02:00
Nikos Tsipinakis
3acffdb194
Merge pull request #814 from fwSmit/wayland-improvements
Wayland improvements
2021-03-08 09:19:26 +02:00
fwsmit
f8a2ff48b3 output: remove unused win_visible function
This was used nowhere, and not even implemented for the wayland output.
2021-02-24 13:32:06 +01:00
fwsmit
a8b2058fcf Wayland: fallback to X11 output when initialization fails 2021-02-24 13:32:06 +01:00
fwsmit
0f588998fe Wayland: fix "follow=none" not working. 2021-02-06 00:42:26 +01:00
fwsmit
500b00b344 Wayland: fix lots of messages when idle_threshold=0 2021-02-06 00:42:15 +01:00
fwsmit
36186d37ea Wayland: Implement foreign toplevel manager protocol
Used for detecting if there is a fullscreen application open.
2021-02-06 00:42:04 +01:00
fwsmit
d7f93a3a69 Wayland: added basic touch support
Copy pasted from mako. I could not test.
2021-02-02 23:33:26 +01:00
fwsmit
6a6cd6697f Remove unnecesary code. Improve log messages 2021-01-09 21:54:56 +01:00
fwsmit
af10f6f8cd Fix indent 2021-01-09 21:49:06 +01:00
fwsmit
20eebb80e1 Simplify idle handling 2021-01-09 21:49:06 +01:00
fwsmit
c40e797e6b improve error messages 2021-01-09 21:49:06 +01:00
fwsmit
b094074ff2 Free idle handler and remove unnecesary variables 2021-01-09 21:49:06 +01:00
fwsmit
836d044df8 Implement all options for output follow mode.
As far as I know, it's not possible to differentiate keyboard and
mouse focus, so they behave the same. This commit also fixes
a bug where a NULL pointer was dereferenced.
2020-12-28 15:17:12 +01:00
fwsmit
ac6093a577 Added setting for changing layer. 2020-12-28 15:17:05 +01:00
fwsmit
deabe2bacf Wayland: fix bug where notification doesn't move after changing width. 2020-12-28 15:16:23 +01:00
fwsmit
859c18a2e9 Wayland: Add support for idle.
When the user doesn't have a seat, or their compositor doesn't support the idle
protocol, we'll assume that they are not idle.

Also, rename wl_output to something that doesn't exist yet.
2020-12-28 15:15:59 +01:00
fwsmit
e5fec3326e Wayland: optimize by making input code asyncronous 2020-12-28 15:15:59 +01:00
fwsmit
705e575d6d Small fixes 2020-12-28 15:15:59 +01:00
fwsmit
32119a1df7 Wayland: handle mouse input 2020-12-28 15:15:59 +01:00
fwsmit
c1caf4bbc7 Set the right window position 2020-12-28 15:15:59 +01:00
fwsmit
4a9c7693f4 update wayland branch to a new master 2020-12-28 15:15:59 +01:00