mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-17 17:08:14 +02:00
xinerama hack is now only enabled when compiled with -dUseXinerama
git-svn-id: trunk@6814 -
This commit is contained in:
parent
6161468c16
commit
027b1428e1
@ -8007,7 +8007,7 @@ end;
|
|||||||
var
|
var
|
||||||
FirstScreenCalled: Boolean = False;
|
FirstScreenCalled: Boolean = False;
|
||||||
FirstScreenResult: Boolean = False;
|
FirstScreenResult: Boolean = False;
|
||||||
{$IFNDEF Ver1_0}
|
{$IFDEF UseXinerama}
|
||||||
function GetFirstScreen: Boolean;
|
function GetFirstScreen: Boolean;
|
||||||
var
|
var
|
||||||
nMonitors: cint;
|
nMonitors: cint;
|
||||||
@ -8046,7 +8046,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
Result := FirstScreenResult;
|
Result := FirstScreenResult;
|
||||||
end;
|
end;
|
||||||
{$ENDIF VER1_0}
|
{$ENDIF UseXinerama}
|
||||||
{$ENDIF Gtk1}
|
{$ENDIF Gtk1}
|
||||||
|
|
||||||
{$IFDEF ASSERT_IS_ON}
|
{$IFDEF ASSERT_IS_ON}
|
||||||
@ -8059,6 +8059,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.339 2005/02/19 20:36:55 mattias
|
||||||
|
xinerama hack is now only enabled when compiled with -dUseXinerama
|
||||||
|
|
||||||
Revision 1.338 2005/02/19 20:33:09 mattias
|
Revision 1.338 2005/02/19 20:33:09 mattias
|
||||||
fixed gtk2 key handle result
|
fixed gtk2 key handle result
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ uses
|
|||||||
// MWE:
|
// MWE:
|
||||||
// TODO: check if the new keyboard routines require X on GTK2
|
// TODO: check if the new keyboard routines require X on GTK2
|
||||||
X, XLib, XUtil, //Font retrieval and Keyboard handling
|
X, XLib, XUtil, //Font retrieval and Keyboard handling
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
Xinerama,
|
Xinerama,
|
||||||
{$ENDIF not VER1_0}
|
{$ENDIF}
|
||||||
{$ENDIF not Gtk1}
|
{$ENDIF not Gtk1}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
InterfaceBase,
|
InterfaceBase,
|
||||||
@ -830,7 +830,7 @@ procedure EndGDKErrorTrap;
|
|||||||
x, y, width, height: gint): PGdkImage;
|
x, y, width, height: gint): PGdkImage;
|
||||||
Function gdk_drawable_get_colormap(Drawable: PGDKDrawable): PGdkColormap;
|
Function gdk_drawable_get_colormap(Drawable: PGDKDrawable): PGdkColormap;
|
||||||
|
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
// Xinerama
|
// Xinerama
|
||||||
function GetFirstScreen: Boolean;
|
function GetFirstScreen: Boolean;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
@ -5270,7 +5270,7 @@ begin
|
|||||||
SM_CXSCREEN:
|
SM_CXSCREEN:
|
||||||
begin
|
begin
|
||||||
{$IFDEF GTK1} { Partial fix for multi monitor systems - force use of first one }
|
{$IFDEF GTK1} { Partial fix for multi monitor systems - force use of first one }
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
if GetFirstScreen then
|
if GetFirstScreen then
|
||||||
result := FirstScreen.x
|
result := FirstScreen.x
|
||||||
else
|
else
|
||||||
@ -5281,7 +5281,7 @@ begin
|
|||||||
SM_CYSCREEN:
|
SM_CYSCREEN:
|
||||||
begin
|
begin
|
||||||
{$IFDEF GTK1}
|
{$IFDEF GTK1}
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
if GetFirstScreen then
|
if GetFirstScreen then
|
||||||
result := FirstScreen.y
|
result := FirstScreen.y
|
||||||
else
|
else
|
||||||
@ -8910,6 +8910,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.399 2005/02/19 20:36:56 mattias
|
||||||
|
xinerama hack is now only enabled when compiled with -dUseXinerama
|
||||||
|
|
||||||
Revision 1.398 2005/02/19 16:30:47 mattias
|
Revision 1.398 2005/02/19 16:30:47 mattias
|
||||||
fixed 1.0.10 compilation
|
fixed 1.0.10 compilation
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ procedure TGtkWSCommonDialog.ShowModal(const ACommonDialog: TCommonDialog);
|
|||||||
var
|
var
|
||||||
GtkWindow: PGtkWindow;
|
GtkWindow: PGtkWindow;
|
||||||
{$IFDEF Gtk1}
|
{$IFDEF Gtk1}
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
Requisition: TGtkRequisition;
|
Requisition: TGtkRequisition;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -148,7 +148,7 @@ begin
|
|||||||
SetColorDialogColor(PGtkColorSelection(GtkWindow),
|
SetColorDialogColor(PGtkColorSelection(GtkWindow),
|
||||||
TColorDialog(ACommonDialog).Color);
|
TColorDialog(ACommonDialog).Color);
|
||||||
{$IFDEF Gtk1}
|
{$IFDEF Gtk1}
|
||||||
{$IFNDEF VER1_0}
|
{$IFDEF UseXinerama}
|
||||||
if GetFirstScreen then begin
|
if GetFirstScreen then begin
|
||||||
{ Fix multi screen problems, at least partially by forcing dialog to centre of first screen }
|
{ Fix multi screen problems, at least partially by forcing dialog to centre of first screen }
|
||||||
gtk_widget_size_request(PGtkWidget(GtkWindow), @Requisition);
|
gtk_widget_size_request(PGtkWidget(GtkWindow), @Requisition);
|
||||||
|
Loading…
Reference in New Issue
Block a user