Benedikt Heine
1162f53f8c
Change queues_stack_duplicate signature to bool
2017-11-15 17:10:56 +01:00
Benedikt Heine
7a057b0b2e
Close old notification when stacking
...
Notification spec prohibits to reuse notification IDs (unless uint32 is
exhausted). Therefore returning the same ID twice must not happen.
Sending a signal, that the old notification timed out makes most sense.
It wasn't closed by the user, nor by a CloseNotification call either.
When we stack notifications, no interaction happened (the equivalent
of timing out).
2017-11-15 14:39:43 +01:00
Nikos Tsipinakis
62e50289f0
Merge pull request #425 from bebehei/memory-leak_history-ignore
...
Free notifications ignored in history
2017-11-07 13:53:22 +02:00
Benedikt Heine
b7677affeb
Free notifications ignored in history
...
Notifications having set the history_ignore hint (and by default
also transient notifications) have not been freed.
2017-11-07 12:33:58 +01:00
Nikos Tsipinakis
fd81bd1908
Merge pull request #364 from SteveJones/master
...
Fix handling of non V1.5 XRandr.
2017-11-04 08:34:49 +02:00
Benedikt Heine
4cf9114028
Require XRandR 1.5 in pkg-config to compile
...
Albeit it's possible to run with XRandR extension < 1.5,
dunst needs the headers of libxrandr 1.5.
2017-11-02 15:31:53 +01:00
Benedikt Heine
1e51edc0df
Fix handling of non V1.5 XRandR
...
Due to the way Xlib handles errors XRRGetMonitors will cause dunst to exit if
the server doesn't support version 1.5 of RandR. The check for null is
effectively dead code but in theory the number of monitors can be < 1 so treat
this as an error. Change the code to fetch the RandR version and fallback if
the version is less than 1.5 when getting monitors.
This fix was brought up by @SteveJones on GitHub
2017-11-02 15:31:19 +01:00
Nikos Tsipinakis
76857b6e7c
Merge pull request #423 from bebehei/optimize_icons
...
Optimize icons
2017-11-02 07:54:41 +02:00
Nikos Tsipinakis
c481760ae1
Merge pull request #424 from bebehei/timeout-fixes
...
Fixup fields to count in monotonic usec time
2017-11-02 07:36:23 +02:00
Nikos Tsipinakis
48fab3f887
Merge pull request #426 from bebehei/progress
...
Use '-1' for undefined progress
2017-11-02 07:29:29 +02:00
Benedikt Heine
11af7402fa
Use '-1' for undefined progress
2017-10-31 15:58:41 +01:00
Benedikt Heine
1f4d03af9c
Fixup fields to count in monotonic usec time
2017-10-31 12:53:39 +01:00
Benedikt Heine
b571698f52
Free Actions in separate method
...
Also free the memory of the actual Action.
2017-10-31 12:49:19 +01:00
Benedikt Heine
23cae3110d
Optimize out icon_overridden
...
There is no need save if the icon field should have precedence, as
setting raw_icon to NULL emphasizes the same.
Also freeing raw_icon saves unneccessary memory.
2017-10-31 12:49:16 +01:00
Benedikt Heine
13ed6301d8
Add separate function to free RawImage
2017-10-31 12:49:07 +01:00
Nikos Tsipinakis
e111f5393e
Merge pull request #411 from bebehei/refactor-queues
...
Refactor queues
2017-10-31 07:56:38 +02:00
Benedikt Heine
b57483416e
Remove command handling from notification_init
2017-10-29 20:38:40 +01:00
Benedikt Heine
616b8a1758
Rename queue to waiting
...
This gives all three queues unique names makes it easier to trace back,
which queue should hold which notifications.
2017-10-29 20:38:40 +01:00
Benedikt Heine
a536e3f60b
Force management of queues to queues.c
2017-10-29 20:38:40 +01:00
Benedikt Heine
e3881766c0
Refactor history_* functions to match queues namespace
2017-10-29 20:38:40 +01:00
Benedikt Heine
38e4bbb7bb
Refactor notification_* functions to match queues namespace
2017-10-29 20:38:40 +01:00
Benedikt Heine
12fa9d6ce1
Move update_lists and check_timeouts to queues.c
...
Also refactor the names to match the namespace.
2017-10-29 20:38:40 +01:00
Benedikt Heine
c70da444a9
Move pause_display to queues.c
...
Hint for dbus.c lines (134,138):
pause_display => (displayed->length == 0)
2017-10-29 20:38:40 +01:00
Benedikt Heine
59ac6d0f88
Move get_sleep_time to queues.c
2017-10-29 20:38:40 +01:00
Benedikt Heine
3fab4c470b
Increment id counter only for displayed notifications
...
Previously for every notification (also stacked ones), a new
notification id was used, even if the notification got discarded.
2017-10-29 20:38:40 +01:00
Benedikt Heine
f869175d0d
Move id assignment to separate function in queues.c
...
Move all id-changing functions out of notification_init and handle this
in queues.c
Also use stack_duplicates in combination with replacement of
notifications correctly. Fixes #404 (issue not found)
2017-10-29 20:38:40 +01:00
Benedikt Heine
af9f6b8b7d
Move maximum notification display count to x11
...
Decouple the x11 stuff from dunst.c, to be able to push update_lists to
queues.c in the next commit
2017-10-29 20:38:40 +01:00
Benedikt Heine
7110734b6e
Move queue initialization to queues.c
2017-10-29 20:38:40 +01:00
Benedikt Heine
7f335b79d2
Uncouple dunst.h from queues.c again
2017-10-29 20:38:40 +01:00
Benedikt Heine
a7003e3616
Refactor: Move queue specific methods to queues.c
2017-10-29 20:38:40 +01:00
Nikos Tsipinakis
11afe28146
Merge pull request #421 from bebehei/dbus-leakings
...
Unref GVariants after use again
2017-10-27 22:40:08 +03:00
Benedikt Heine
75ba00ff06
Add changelog entry for dbus memleaks
2017-10-27 20:39:18 +02:00
Benedikt Heine
df56528bdc
Unref GVariants after use again
2017-10-27 20:15:31 +02:00
Nikos Tsipinakis
177fc30484
Merge pull request #417 from bebehei/buildstack
...
Buildstack
2017-10-26 18:49:49 +03:00
Benedikt Heine
b5a48ea135
Sync phony targets with .PHONY and organise in sections
2017-10-26 17:21:33 +02:00
Benedikt Heine
d07bdacab9
Introduce debug target
2017-10-26 17:11:05 +02:00
Nikos Tsipinakis
a2575566f5
Merge pull request #418 from bebehei/microopt
...
Microopt
2017-10-24 06:03:58 +03:00
Benedikt Heine
e3528ef3ec
Indent functions to standard
2017-10-22 10:40:39 +02:00
Benedikt Heine
2d67a5c78e
Remove unused ERR macro
2017-10-22 10:40:39 +02:00
Benedikt Heine
2d7dc6fbc5
Make startup notification timeout in 10 seconds
2017-10-22 10:40:39 +02:00
Benedikt Heine
bfc8b17c27
Reorganise CLFAGS/LDFLAGS handling
2017-10-22 04:11:34 +02:00
Benedikt Heine
1091a976f2
travis: also build dunstify
2017-10-22 04:11:34 +02:00
Benedikt Heine
e890052431
Restructure the Makefile (refactor)
2017-10-22 04:11:32 +02:00
Benedikt Heine
37d76ab0d1
Simplify dunstify flags
2017-10-22 04:10:20 +02:00
Benedikt Heine
1cb60e0dd7
Treat warnings in travis as fatal
2017-10-22 02:53:13 +02:00
Nikos Tsipinakis
3691b7e47c
Merge pull request #371 from bebehei/configh
...
Improve usage of config.h
2017-10-21 20:25:36 +03:00
Nikos Tsipinakis
7da60b998e
Merge pull request #409 from bebehei/issue-template
...
Add issue template
2017-10-20 20:34:08 +03:00
Nikos Tsipinakis
d06c471053
Merge pull request #416 from bebehei/unref-notify
...
Free notification before closing
2017-10-19 05:20:39 +03:00
Benedikt Heine
ca996c9596
Free notification before closing
...
The notification object should actually get freed by notify_uninit. But
before freeing the notification, notify_uninit also sends the
CloseNotification signal directly, if the timeout is 0.
But the timeout of 0 should actually indicate a notification, which
never expires.
Fixes #415
2017-10-18 23:45:15 +02:00
Benedikt Heine
3fc27e4004
Deprecate STATIC_CONFIG
2017-10-18 00:09:42 +02:00