Commit Graph

22 Commits

Author SHA1 Message Date
ecbe77bbda fix(monitor): Reload when any monitor changes
Before it would only reload if the size changed and even that was
reliable since the method relied on the order of the monitor list.

Now if the monitor list differs in any way (pos, dimension, primary,
output, name) a reload is issued
2020-04-21 23:59:01 +02:00
52000c194a fix(xrandr): Fetch cloned monitors where possible
Removing monitors is not really necessary when selecting the monitor
where to render the bar or choosing the backlight. Since both monitors
occupy the same coordinates rendering can be done on both and it's
better to give people felxibility for the backlight.

Fixes #1191
2020-04-21 23:59:01 +02:00
b5e7078d93 fix(monitor): Remove realloc from get_monitors
Premature optimization that tried to cache monitors but the cache did
not take into account the parameter values.

The call `get_monitors(..., ..., false, true);` would get all connected
and unconncected monitors a subsequent call
`get_monitors(..., ..., true, false);` would get back the same list of
monitors even though it requested only connected monitors.

Additionally `get_monitors` is never called periodically so the
optimization really didn't help much.
2020-04-21 23:59:01 +02:00
6692b4a8da refactor(x11): Cleanup 2017-01-24 10:49:14 +01:00
385572ec64 feat(xrandr): Support for monitors
Refs #280
2017-01-13 03:52:57 +01:00
78bb3695e6 refactor(config): Deduce return type from default value 2016-12-30 23:32:05 +01:00
00ac4bea63 refactor(x11): Header cleanup 2016-12-26 10:27:30 +01:00
789800a68f refactor(signals): Simple types 2016-12-23 22:19:42 +01:00
d4e3891ab6 refactor(connection): Listen for property notify by default 2016-12-23 01:05:36 +01:00
bc9b9f0d12 refactor: Cleanup 2016-12-21 23:22:02 +01:00
185363056a refactor(x11): Cleanup 2016-12-21 15:04:16 +01:00
a89c4ef2dd refactor: Move all event handling to the controller 2016-12-20 05:16:04 +01:00
f9062d031c refactor(clang-tidy): Apply fixes 2016-12-15 03:30:41 +01:00
4fca0c89b4 refactor: Object construction 2016-12-14 11:01:44 +01:00
1a2a6e5fab refactor: Construction methods 2016-12-14 11:01:44 +01:00
08be86fbe1 wip(refactor): Improve signal and event handling 2016-12-14 11:01:44 +01:00
44da14755d refactor(clang-tidy): Apply fixes 2016-12-04 04:11:47 +01:00
df85a6492e refactor(eventloop): Typed events 2016-12-03 23:00:41 +01:00
6b51234f23 fix(screen): Only reload if changed 2016-12-03 16:44:37 +01:00
4776ec49df fix: Use defined event sink priority 2016-12-03 13:00:40 +01:00
c6540a8950 refactor: Signaling 2016-12-01 08:56:16 +01:00
4852f2817c feat: Reload on XCB_RANDR_SCREEN_CHANGE_NOTIFY 2016-11-27 01:14:02 +01:00