1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-14 17:43:01 -04:00

Second fix for positioning window

This commit is contained in:
QC 2014-07-24 20:20:30 +02:00
parent c3708f8dce
commit b146f432a9

View file

@ -1010,8 +1010,8 @@ Window create_window ( Display *display )
static void calculate_window_position ( const workarea *mon, int *x, int *y, int w, int h )
{
// Default location is center.
*y = mon->y + ( mon->h - h ) / 2;
*x = mon->x + ( mon->w - w ) / 2;
*y = mon->y + ( mon->h - h - config.menu_bw * 2) / 2;
*x = mon->x + ( mon->w - w - config.menu_bw * 2) / 2;
// Determine window location
switch ( config.location )
{