13 Commits

Author SHA1 Message Date
fwsmit
98a61f0896 wayland: implement get_scale function for hidpi support 2021-04-22 13:04:49 +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
bb12727bc0 Make compiling for wayland optional
This can be changed in config.mk or by using the command
        make WAYLAND=0

Also removed using_xwayland function definition as it isn't defined
anymore
2021-01-09 21:54:23 +01:00
fwsmit
5a20d463b5 Implement xwayland idle fix differently 2021-01-09 21:49:06 +01:00
fwsmit
756f822a6b Fix notifications not disapearing on xwayland
Because idle detection on xwayland is not possible, just assume
that the user is not idle. This also somehow fixes notifications
not disapearing when clicking on them.
2021-01-09 21:49:06 +01:00
fwsmit
25e1d0c442 Added option for forcing X11 on wayland.
Also added some more documentation.
2021-01-09 21:48:59 +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
705e575d6d Small fixes 2020-12-28 15:15:59 +01:00
fwsmit
c1caf4bbc7 Set the right window position 2020-12-28 15:15:59 +01:00
fwsmit
72ceedd4db Fix notification not disappearing 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
fwsmit
58d215ddfe Create abstract output and fix wayland bug
This commit adds an output struct which abstracts the X11 specific
functions and makes it possible to easily create a drop-in wayland
output.

It also fixes a bug in wayland where notifications won't disappear.
This is because wayland doesn't give access to user input when a
client is not in focus. This way it seems like the user is always
idle. The idle functionality is now disabled in Wayland until proper
support is added.
2020-11-18 15:20:06 +01:00