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:
parent
c3708f8dce
commit
b146f432a9
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue