e/randr: lower monitor on middle click

If monitors are stacked above each other it is diffiult to find the
monitor below.
This commit is contained in:
Sebastian Dransfeld 2013-11-04 11:14:20 +01:00
parent b67f6d64b1
commit 51a7ff2847
1 changed files with 23 additions and 16 deletions

View File

@ -1720,11 +1720,12 @@ _e_smart_monitor_thumb_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Ob
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ev = event;
if (ev->button != 1) return;
/* try to get the monitor object */
if (!(mon = data)) return;
if (ev->button == 1)
{
/* try to get the monitor smart data */
if (!(sd = evas_object_smart_data_get(mon))) return;
@ -1746,6 +1747,12 @@ _e_smart_monitor_thumb_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Ob
/* raise the monitor */
evas_object_raise(mon);
}
else if (ev->button == 2)
{
/* lower the monitor */
evas_object_lower(mon);
}
}
static void
_e_smart_monitor_frame_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)