79 |
static BOOL g_moving_wnd; |
static BOOL g_moving_wnd; |
80 |
static int g_move_x_offset = 0; |
static int g_move_x_offset = 0; |
81 |
static int g_move_y_offset = 0; |
static int g_move_y_offset = 0; |
82 |
|
static BOOL g_using_full_workarea = False; |
83 |
|
|
84 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
85 |
extern int g_dsp_fd; |
extern int g_dsp_fd; |
1092 |
else if (g_width < 0) |
else if (g_width < 0) |
1093 |
{ |
{ |
1094 |
/* Percent of screen */ |
/* Percent of screen */ |
1095 |
|
if (-g_width >= 100) |
1096 |
|
g_using_full_workarea = True; |
1097 |
g_height = HeightOfScreen(g_screen) * (-g_width) / 100; |
g_height = HeightOfScreen(g_screen) * (-g_width) / 100; |
1098 |
g_width = WidthOfScreen(g_screen) * (-g_width) / 100; |
g_width = WidthOfScreen(g_screen) * (-g_width) / 100; |
1099 |
} |
} |
1101 |
{ |
{ |
1102 |
/* Fetch geometry from _NET_WORKAREA */ |
/* Fetch geometry from _NET_WORKAREA */ |
1103 |
uint32 x, y, cx, cy; |
uint32 x, y, cx, cy; |
1104 |
|
g_using_full_workarea = True; |
1105 |
|
|
1106 |
if (get_current_workarea(&x, &y, &cx, &cy) == 0) |
if (get_current_workarea(&x, &y, &cx, &cy) == 0) |
1107 |
{ |
{ |
1402 |
/* The title bar. */ |
/* The title bar. */ |
1403 |
if (xevent.type == ButtonPress) |
if (xevent.type == ButtonPress) |
1404 |
{ |
{ |
1405 |
if (!g_fullscreen && g_hide_decorations) |
if (!g_fullscreen && g_hide_decorations && !g_using_full_workarea) |
1406 |
{ |
{ |
1407 |
g_moving_wnd = True; |
g_moving_wnd = True; |
1408 |
g_move_x_offset = xevent.xbutton.x; |
g_move_x_offset = xevent.xbutton.x; |