recorder: Use workarea to position the recording icon
It looks a bit unpolished to overlap our own chrome with the recording icon, which may happen when an existing adds UI at the bottom edge. Fix this by using the primary monitor's workarea for the position rather than the entire monitor. https://bugzilla.gnome.org/show_bug.cgi?id=700409
This commit is contained in:
parent
434f1edb25
commit
248a0c1b6c
@ -477,7 +477,7 @@ recorder_draw_buffer_meter (ShellRecorder *recorder)
|
|||||||
GdkRectangle primary_monitor;
|
GdkRectangle primary_monitor;
|
||||||
float rects[16];
|
float rects[16];
|
||||||
|
|
||||||
gdk_screen_get_monitor_geometry (recorder->gdk_screen,
|
gdk_screen_get_monitor_workarea (recorder->gdk_screen,
|
||||||
gdk_screen_get_primary_monitor (recorder->gdk_screen),
|
gdk_screen_get_primary_monitor (recorder->gdk_screen),
|
||||||
&primary_monitor);
|
&primary_monitor);
|
||||||
|
|
||||||
@ -602,7 +602,7 @@ recorder_on_stage_paint (ClutterActor *actor,
|
|||||||
{
|
{
|
||||||
GdkRectangle primary_monitor;
|
GdkRectangle primary_monitor;
|
||||||
|
|
||||||
gdk_screen_get_monitor_geometry (recorder->gdk_screen,
|
gdk_screen_get_monitor_workarea (recorder->gdk_screen,
|
||||||
gdk_screen_get_primary_monitor (recorder->gdk_screen),
|
gdk_screen_get_primary_monitor (recorder->gdk_screen),
|
||||||
&primary_monitor);
|
&primary_monitor);
|
||||||
if (!recorder->only_paint)
|
if (!recorder->only_paint)
|
||||||
|
Loading…
Reference in New Issue
Block a user