Closed sc0w closed 6 years ago
@sc0w I am not really sure how to test this PR because of double code in m-s-d. https://github.com/mate-desktop/mate-settings-daemon/blob/master/plugins/common/msd-osd-window.c#L435 Btw. what code is used? I am guessing the code in m-s-d is prefered when both are installed, so this change needs to be done first in m-s-d for testing. This leads me to the question why not dropping the osd code here? I can't imagine that someone use m-p-m outside of MATE without using m-s-d.
I will do the same to mate-settings-daemon (it is in my pending list)
Honestly, I have no idea how to test it
I remember having to work on both of them to get the OSD's to look right in the noncomposited case.
Ahh, got it, thanks for explanation.
This commit reverts:
https://github.com/mate-desktop/mate-power-manager/commit/f748d5794f02d02ba949ad1503ed72207efca40c
And it applies an alternative to fix the deprecated functions:
gdk_screen_get_width gdk_screen_get_height