Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ROX-Filer/src/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ static void run_applet(PanelIcon *pi)

/* Set a hint to let applets position their menus correctly */
pos = g_strdup_printf("%s,%d",
panel_side_to_name(side), MENU_MARGIN(side));
panel_side_to_name(side), pi->panel->width);
gdk_property_change(pi->socket->window,
gdk_atom_intern("_ROX_PANEL_MENU_POS", FALSE),
gdk_atom_intern("STRING", FALSE),
Expand Down Expand Up @@ -2706,7 +2706,7 @@ static void panel_show_menu(GdkEventButton *event, PanelIcon *pi, Panel *panel)

pos[0] = event->x_root;
pos[1] = event->y_root;
pos[2] = MENU_MARGIN(side);
pos[2] = panel->width;
/* FIXME: Should we read screen from event's window rather than
* using default? */
pos[3] = gdk_screen_get_monitor_at_point(
Expand Down
2 changes: 0 additions & 2 deletions ROX-Filer/src/panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ typedef enum {
PANEL_DEFAULT_SIDE /* Read from file, or use free side */
} PanelSide;

#define MENU_MARGIN(side) ((side) == PANEL_BOTTOM ? 32 : 8)

struct _Panel {
GtkWidget *window;
GtkAdjustment *adj; /* Scroll position of the bar */
Expand Down