1471 Commits

Author SHA1 Message Date
Jonas Berlin
445d305bf8 [ReviewFix] dunstrc: Add min_icon_size 2019-12-03 21:29:37 +02:00
Jonas Berlin
e077b949a6 [ReviewFix] gdk_pixbuf_from_file: Update valgrind suppressions to match new code paths 2019-12-03 20:28:08 +02:00
Jonas Berlin
39c97e28f6 [ReviewFix] get_pixbuf_from_file: Free memory on error return 2019-12-03 20:27:31 +02:00
Jonas Berlin
364bce1ed0 Scale icons during loading to get best quality for e.g. vector images 2019-11-29 21:28:22 +02:00
Jonas Berlin
ab3b5c2805 Implement #392 2019-11-29 21:14:57 +02:00
Nikos Tsipinakis
9e29406bb5 Fix dead pango reference link in manpage 2019-08-22 12:58:29 +03:00
Nikos Tsipinakis
68daebb713
Merge pull request #656 from rootkiwi/master
Fix dead link to pango reference in dunstrc
2019-08-22 12:55:57 +03:00
rootkiwi
eddcd2bfdf Fix dead link to pango reference in dunstrc 2019-08-22 11:37:38 +02:00
Benedikt Heine
53e7f3d16a
Merge pull request #650 from tsipinakis/bugfix/parse-empty
option_parser: Fail early when parsing empty string
2019-08-10 20:06:11 +02:00
Nikos Tsipinakis
f37a5d1c64 option_parser: Fail early when parsing empty string
Sometimes these parse functions can have other side-effects such as the
sepcolor one which defaults to a custom color string if the value is
unknown. If the string is empty all of these functions should fail to
allow for the default to be used.

See #649 for details
2019-08-10 19:47:30 +03:00
Nikos Tsipinakis
13307d2b17
Merge pull request #647 from bebehei/issue-646-overflow-tests
Don't overflow when passing INT_MAX on DBus wire
2019-08-09 16:29:12 +03:00
Benedikt Heine
52a8489043 Don't overflow when passing INT_MAX on DBus wire 2019-08-09 14:41:37 +02:00
Nikos Tsipinakis
6c4eeda434 Start new release cycle 2019-07-03 10:02:21 +03:00
Nikos Tsipinakis
37474c127b Dunst v1.4.1 v1.4.1 2019-07-03 09:46:05 +03:00
Nikos Tsipinakis
7ca6a98238 Fix dunstify.d being left behind on clean 2019-07-03 09:29:03 +03:00
Nikos Tsipinakis
ac94eca79e Recheck fullscreen status on ConfigureNotify
IceWM does not send PropertyNotify when exiting fullscreen. As a
band-aid solution also re-check the fullscreen status on ConfigureNotify
events. We're receiving them already so a few extra checks should not be
noticeable in any case.

Fixes #613
2019-06-20 15:25:54 +03:00
Nikos Tsipinakis
69a682ce34 Fix call to draw when no notifications are available
Draw should not be called when there are no notifications in the queue.
This for unknown reasons causes a crash the next time we attempt to get
the currently active window with a BadValue error from
XGetWindowProperty.

Fixes #630.
2019-06-19 11:02:46 +03:00
Nikos Tsipinakis
700a3225f2 Increase notification character limit
Fixes #636
2019-06-18 14:16:32 +03:00
Nikos Tsipinakis
7fc23b23d0 Fix argument terminator handling in dunstify
`g_option_context_parse` which we use to parse command line arguments
leaves the argument terminator, "--", in the argv under specific
circumstances which can cause inconsistent results.

Credit to Opal Hart for reporting this.
2019-06-16 21:37:18 +03:00
Nikos Tsipinakis
264df67a63 Fix negative width being ignored
In `x_parse_geometry` we modified the global settings struct for
negative width instead of updating it in the struct that is currently
being constructed.

As a result the negative_width field was always false as it was being
overwritten by the struct assignment after the functions return.

Fixes #628
2019-05-02 12:34:25 +03:00
Nikos Tsipinakis
d6bd506669 Fix parsing of comments after a quoted string in the config
Quoted values can still have a trailing comment that we need to remove
before calling `add_value`. Otherwise, when trying to strip the quotes
from the value `string_strip_quotes` only looks at the end which
is inside the comment and so it won't find a matching end quote to
strip.

Fixes #626
2019-04-27 10:30:02 +03:00
Nikos Tsipinakis
6cab789154
Merge pull request #622 from dmgk/master
Make extract_urls regex more portable
2019-04-08 17:54:21 +03:00
Dmitri Goutnik
6e8de70c82 Make extract_urls regex more portable 2019-04-08 09:15:59 -05:00
Nikos Tsipinakis
dda26bfbe9 Fix dynamic width check
The width_set field is true if the width is set in the geometry setting,
in other words if a specific (or dynamic) width is set or we want the
notification to cover the whole screen.
In order to check if a specific width is chosen we need to also exclude
dynamic width, meaning the width field has to be non 0;

Fixes #614
2019-04-02 11:34:27 +03:00
Nikos Tsipinakis
c797b0e7b3 Start new release cycle 2019-03-30 19:13:37 +02:00
Nikos Tsipinakis
cf7dec2989 Dunst v1.4.0 v1.4.0 2019-03-30 18:47:06 +02:00
Nikos Tsipinakis
ec040f6865 Add more documentation about each rule item 2019-03-30 18:43:43 +02:00
Nikos Tsipinakis
b940b2703c Document {match,set}_transient 2019-03-30 18:43:43 +02:00
Nikos Tsipinakis
591c6f91f3
Merge pull request #608 from bebehei/xrandr-dpi
XRandR DPI Online Changes
2019-03-23 20:04:50 +02:00
Nikos Tsipinakis
1bc3237a35 Subscribe to PropertyChangeMask regardless of follow_mode
PropertyNotify events are used primarily to detect active screen changes
when follow mode is used but now we also need them to receive resource
manager events in order to update the dpi value.
2019-03-23 20:01:27 +02:00
Benedikt Heine
812d5a3b84 Replace the xresources DB on PropertyNotify
When changing values with xrdb on the command line, an XEvent is
triggered on the "RESOURCE_MANAGER" atom.

But xlib just doesn't care. XResourceManagerString() will still report
the old values. Also XrmGetDatabase() won't help out.

So, when we receive a PropertyNotify for the resource manager atom, we
have to manually query its contents, convert it to a DB and replace it
in the display object.

This allows, that any method just can call XrmGetDatabase() and get the
latest values.
2019-03-23 20:01:27 +02:00
Benedikt Heine
4b06d67605 Initialize xrm during init
Initializing xrm is required only once. Everything else would be
overhead.
2019-03-23 20:01:27 +02:00
Benedikt Heine
9961efd10c Copy the database from the display connection
This allows to update the DB on the xctx.dpy object. Crawling the string
from xctx.dpy will always return the xdefaults string, which represents
the defaults from the initialisation, but not with any other updates.
2019-03-23 20:01:27 +02:00
Benedikt Heine
e9e199c4ec Pass pointer to check_screen_event 2019-03-23 20:01:27 +02:00
Benedikt Heine
ca7234b1c8 Cache the Xft.dpi value outside
The Xft.dpi value is one way to set the dpi of the X11 display. Querying
this value requires much overhead. Therefore we have to cache this.

Previously we did just query it at the beginning and ignored further
changes.

As there is no native signal to catch a change in its xrdb value, we
have to rely on the root window's PropertyNotify event and filter there
the RESOURCE_MANAGER atom.

This will get hooked up later.
2019-03-23 20:01:27 +02:00
Benedikt Heine
37e580e857 (style) swap conditional blocks 2019-03-23 20:01:27 +02:00
Benedikt Heine
4f510e1703 Query the X11 screen's DPI instead of monitor
When changing the DPI via xrandr --dpi <DPI>, xrandr will send a
RRScreenChangeEvent and the DPI value should get adjusted.

Falsely, we thought randr_update() would catch up and query the right
monitor values. But nothing changes, because we query the
XRRMonitorInfo. The monitor info contains the real physical width and
height of the monitor's screen.

But xrandr --dpi only changes the - let's say - virtual screen size of
the virtual overall screen (and therefore changing the DPI to the
matching value).

Important commands to understand:

- Changes dpi of the virtual screen

    xrandr --dpi

- Gives info about the "virtual" screen size (used by DisplayWidth)

    xdpyinfo | grep -B1 resolution

- Gives info about the "physical" screen size (used by XRRMonitorInfo)

    xrandr -q

I know, that I'm probably not right and might not understand the topic
in its full size yet[0]. But I'm 100% sure, that the terms "monitor",
"screen", "screens", "output" and "display" do not have a consistent
naming scheme.
[0] https://twitter.com/dechampsgu/status/857924498280124416

Fixes #382
2019-03-23 20:01:27 +02:00
Benedikt Heine
121ddd2b94 Always throw out the whole screen array
If n < screens_len, screens_len did not get updated. So boundary
checks wouldn't catch, if screens between n and screens_len are
accessed. This will prevent such an error type in the future.
2019-03-23 20:01:27 +02:00
Benedikt Heine
9bcb27f2e8 Pass the RRScreenChangeNotify event to libxrandr
From Xrandr(3):

> Clients must call back into Xlib using XRRUpdateConfiguration when
> screen configuration change notify events are generated [...].
2019-03-23 20:01:27 +02:00
Nikos Tsipinakis
59a87e4e99
Merge pull request #610 from bebehei/docs-retval
Use @retval in codedocs
2019-03-07 22:29:18 +02:00
Benedikt Heine
16fcbc9db9 Use @retval in codedocs 2019-03-06 21:14:52 +01:00
Nikos Tsipinakis
0e56c61f8f Fix dunstify --close description 2019-02-28 15:25:41 +02:00
Nikos Tsipinakis
7b3d85a6d0
Merge pull request #548 from knopwob/icon_size
limit icon size when we have a fixed width
2019-02-14 11:57:48 +02:00
Sascha kruse
c99f715391 Limit icon size when we have a fixed width
Fix #540
2019-02-13 12:01:35 +02:00
Nikos Tsipinakis
63ec283c5a
Merge pull request #590 from mgsloan/skip-display-rule-option
Skip display rule option
2019-02-09 11:33:26 +02:00
Nikos Tsipinakis
9e8142af44
Merge pull request #603 from tsipinakis/test-install
Test installation
2019-02-06 18:14:46 +02:00
Michael Sloan
802b1abb09 Use queues_notification_close for skip_display instead of queues_history_push
https://github.com/dunst-project/dunst/pull/590
2019-02-05 13:36:56 -08:00
Nikos Tsipinakis
2fb1de8f02 Test installation
Ensure that dunst is installed correctly to avoid bugs like #600.
2019-02-05 23:11:35 +02:00
Nikos Tsipinakis
2568727e4c
Merge pull request #601 from rhssk/manprefix
Remove trailing spaces from MANPREFIX path
2019-02-03 11:40:45 +02:00
Rihards Skuja
dcd3238327
Remove trailing spaces from MANPREFIX path
Variables with trailing comments include the spaces leading up to the
comment (https://www.gnu.org/software/make/manual/make.html#Flavors)
so the corresponding install command looked like
"install -Dm644 docs/dunst.1 $(DESTDIR)/usr/share/man /man1/dunst.1"
2019-02-03 11:24:02 +02:00