diff options
author | Javier <dev.git@javispedro.com> | 2015-01-25 21:34:57 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-01-25 21:34:57 +0100 |
commit | f12470d28538aefcbefb89e1aea5e4f8aa455af7 (patch) | |
tree | 89b2df86e6ee7e2dd65c9e5ccf22f3eb6e4db5d2 /libmdock | |
parent | 104bfde98be4c491ccdf0e4bcf5b5ac7a2a633d4 (diff) | |
download | mdock-f12470d28538aefcbefb89e1aea5e4f8aa455af7.tar.gz mdock-f12470d28538aefcbefb89e1aea5e4f8aa455af7.zip |
do not allow popup to go above monitor area
Diffstat (limited to 'libmdock')
-rw-r--r-- | libmdock/mdock-widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmdock/mdock-widget.c b/libmdock/mdock-widget.c index 512f006..d7cafd7 100644 --- a/libmdock/mdock-widget.c +++ b/libmdock/mdock-widget.c @@ -180,6 +180,8 @@ static void show_item_popup(MDockWidget *self, MDockItem *item) if (y + requisition.height > monitor.y + monitor.height) { y -= y - (monitor.y + monitor.height) + requisition.height; + } else if (y < monitor.y) { + y = monitor.y; } gtk_window_move(GTK_WINDOW(selector), x, y); |