CVS: rdesktop xwin.c,1.194,1.195
Peter Åstrand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21860
Modified Files:
xwin.c
Log Message:
Disable moving in single-app mode when window is occupying entire
workarea.
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -C2 -d -r1.194 -r1.195
*** xwin.c 25 Aug 2005 20:27:45 -0000 1.194
--- xwin.c 26 Aug 2005 07:01:02 -0000 1.195
***************
*** 80,83 ****
--- 80,84 ----
static int g_move_x_offset = 0;
static int g_move_y_offset = 0;
+ static BOOL g_using_full_workarea = False;
#ifdef WITH_RDPSND
***************
*** 1092,1095 ****
--- 1093,1098 ----
{
/* Percent of screen */
+ if (-g_width >= 100)
+ g_using_full_workarea = True;
g_height = HeightOfScreen(g_screen) * (-g_width) / 100;
g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
***************
*** 1099,1102 ****
--- 1102,1106 ----
/* Fetch geometry from _NET_WORKAREA */
uint32 x, y, cx, cy;
+ g_using_full_workarea = True;
if (get_current_workarea(&x, &y, &cx, &cy) == 0)
***************
*** 1399,1403 ****
if (xevent.type == ButtonPress)
{
! if (!g_fullscreen && g_hide_decorations)
{
g_moving_wnd = True;
--- 1403,1407 ----
if (xevent.type == ButtonPress)
{
! if (!g_fullscreen && g_hide_decorations && !g_using_full_workarea)
{
g_moving_wnd = True;
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf