[gnome-shell] recorder: Use workarea to position the recording icon
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] recorder: Use workarea to position the recording icon
- Date: Sat, 18 May 2013 12:29:53 +0000 (UTC)
commit 248a0c1b6c06e670552366c44b7de83bd164e168
Author: Florian Müllner <fmuellner gnome org>
Date: Fri May 17 20:14:26 2013 +0200
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
src/shell-recorder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index aa8b477..8d84a7a 100644
--- a/src/shell-recorder.c
+++ b/src/shell-recorder.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]