582 Commits

Author SHA1 Message Date
fwsmit
5a20d463b5 Implement xwayland idle fix differently 2021-01-09 21:49:06 +01:00
fwsmit
af10f6f8cd Fix indent 2021-01-09 21:49:06 +01:00
fwsmit
3441f4c68d Change default layer to overlay, add note about pushback 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
ae38efedbb Update dunstrc with Wayland settings 2021-01-09 21:49:06 +01:00
fwsmit
7b26b4bd94 Update input.c 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
25e1d0c442 Added option for forcing X11 on wayland.
Also added some more documentation.
2021-01-09 21:48:59 +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
ed560eab4e Fixed Makefile for building wayland 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
Nikos Tsipinakis
0e6997b6fc Flush stdout when using -print
This ensures writes happen on every new notification when output is
redirected to a file.

Closes #794
2020-12-24 15:39:44 +02:00
Nikos Tsipinakis
a89287cb3e Check for marked_for_closure before checking for timeout 2020-12-17 19:49:26 +02:00
Nikos Tsipinakis
8f9e85f122 Fix incorrect handling of 'do_action, close' mouse action (again!) 2020-12-17 19:49:26 +02:00
Nikos Tsipinakis
732227eff5 Fix incorrect handling of 'do_action, close' mouse action
Fixes #778
2020-12-01 13:41:13 +02:00
Nikos Tsipinakis
c37a923def Fix XRM dpi loading
Bug introduced in 0bcc135ffd9a5ad0331f8608f4ed1c4223e0b4e9, XRM database
wasn't properly initialized when the screen dpi is assigned.
2020-11-18 21:57:58 +02:00
Nikos Tsipinakis
0bcc135ffd
Merge pull request #779 from fwSmit/transition-output
Create abstract output and fix wayland bug
2020-11-18 17:44:18 +02: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
Nikos Tsipinakis
3d3ba4b9c5
Merge pull request #775 from fwSmit/progress-bar
Add progress bar
2020-11-10 11:55:02 +02:00
fwsmit
4f10496123 Add docs, tests and fixes for progress bar 2020-11-10 10:52:26 +01:00
fwsmit
bfcf655b1e Add feature: progress bar 2020-11-06 14:25:04 +01:00
fwsmit
5caac20268 Turn icons on by default 2020-11-06 13:16:57 +01:00
fwsmit
55d700f746 Add filetype to vim modeline 2020-11-02 20:25:26 +01:00
Jason Nader
8831260be3
Emit signal when paused property changes 2020-10-03 23:42:34 +09:00
Nikos Tsipinakis
e59d203256 Fix monitor setting overriding follow_mode
Ignore the monitor setting if it's set to a non-zero value and the
follow mode isn't none.

Fixes #755
2020-08-20 13:50:56 +03:00
Maxime Wack
6f5f003e2b Fix possible division by zero in radius calculation.
Check all possible causes of division by zero in the
calculation of the radius.
2020-08-15 14:22:23 +02:00
Nikos Tsipinakis
37feb7d6a3 Fix history_ignore rule being reset
Set the default history_ignore value to -1 for unset, otherwise it'll be
reset to false when applying additional rules.

Fixes #747
2020-08-08 19:11:13 +03:00
Nikos Tsipinakis
c01f81b692 Fix possible division by 0 in radius calculation 2020-07-18 22:39:40 +03:00
Nikos Tsipinakis
9db8b76473
Merge pull request #735 from Djeeberjr/master
multiple scripts for notification
2020-07-18 22:12:26 +03:00
Djeeberjr
1b8f56eb45 changed script_run back to bool 2020-07-18 15:51:04 +02:00
matclab
842a5242f7 Remove warning message
This message has no real added value and is emitted every time a
notification is closed when `ignore_dbuclose` is set.
2020-07-16 18:28:05 +02:00
matclab
7bd55a53bf ignore_dbusclose: Add debug message when ignoring 2020-07-16 18:28:05 +02:00
matclab
0a08cefc68 ignore_dbusclose: send NotificationClosed signal back for spec compliance
The notification spec has no concept of disallowing closing notifications,
so to make the ignore_dbusclose 'compliant' we choose to lie to the clients
that the notification is actually closed, but keep it open.
To do this, we send a NotificationClosed signal back (via signal_notification_closed
which also call notification_invalidate_action)
2020-07-16 18:28:05 +02:00
matclab
762d37758d Add ignore_dbusclose settings
closes #731
2020-07-12 22:44:26 +02:00
matclab
3c33f4559f No compositor if no _NET_WM_CM_Si atom
close #734
2020-07-12 14:44:47 +02:00
Djeeberjr
4d66a60a4f multiple scripts for notification 2020-07-12 00:50:52 +02:00
Nikos Tsipinakis
0de8610b67 Fix crash when triggering actions via dunstctl
g_list_nth_data was used to query the notification list, but in the code
it was erroneously assumed that a GList object was returned rather than
a notification.

One of the many pitfalls of generic pointers...

Fixes #727
2020-07-02 19:46:36 +02:00
Nikos Tsipinakis
8afb7fcd1a Clear window before redrawing (again!)
The timeline of this issue is as follows:
In 7a094bc a call to XClearWindow/XFlush was added as part of RGBA
support.
Afterwards, I noticed that there is some noticeable flicker while
redrawing for large notifications, so I foolishly removed both of these
calls without considering the full effects.

As a result when redrawing notifications 'stack up' with each-other.
After a testing it seems that the XFlush call that was causing
the flicker is not necessary and XClearWindow works without it.

Fixes #728
2020-07-02 19:27:44 +02:00
Nikos Tsipinakis
1ca271084a Recognize svgz icon types 2020-06-11 18:21:58 +02:00
Nikos Tsipinakis
ed3db5048c Revert "Clear window to prevent accumulations"
This reverts commit 7a094bc702149104cd4049281a7dd9ed0ab76c89.

This commit caused a flicker effect every time the window was redrawn,
reverting it for now.
2020-06-09 12:13:29 +02:00