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
b6edbd46b9
commit
5dd020f2e2
@ -477,7 +477,7 @@ recorder_draw_buffer_meter (ShellRecorder *recorder)
|
||||
GdkRectangle primary_monitor;
|
||||
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),
|
||||
&primary_monitor);
|
||||
|
||||
@ -602,7 +602,7 @@ recorder_on_stage_paint (ClutterActor *actor,
|
||||
{
|
||||
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),
|
||||
&primary_monitor);
|
||||
if (!recorder->only_paint)
|
||||
|
Loading…
Reference in New Issue
Block a user