Commit Graph

66 Commits

Author SHA1 Message Date
Dmitry Rekman
aeff71688d Linux: support transparent windows.
- Implemented for X11 only, using poorly documented and apparently non-standard, yet widely supported _NET_WM_WINDOW_OPACITY atom.
- Symmetric (Set/Get) API is provided, but only setting is actually implemented (we aren't getting it, so no way to test anyway).
- Binary SDL libraries have been rebuilt.

[CL 2323467 by Dmitry Rekman in Main branch]
2014-10-08 21:28:54 -04:00
Dmitry Rekman
8cf02f2fea Fix for context menu staying up on Linux.
- Ignore focus notifications altogether (for now?) and track clicks only.
- Also fix the error of never passing any other value than Deactivate.
- Remove logspam.

[CL 2322018 by Dmitry Rekman in Main branch]
2014-10-07 19:05:07 -04:00
Jaroslaw Surowiec
8840c5d6b2 CrashReport - Added GenericPlatformContext
#codereview Robert.Manuszewski

[CL 2321042 by Jaroslaw Surowiec in Main branch]
2014-10-07 05:41:02 -04:00
Dmitry Rekman
9845185cdd Linux: clipboard support (PR #489).
- contributed by amigo.

[CL 2320800 by Dmitry Rekman in Main branch]
2014-10-06 20:49:03 -04:00
Michael Noland
cf61cf2c85 Core: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2316335 by Michael Noland in Main branch]
2014-10-01 14:40:06 -04:00
Dmitry Rekman
03d56640e5 Linux: better multi-monitor support (TTP #347076).
- Rebuilt bundled SDL with Xinerama/XRandR support.
- Fixed SDL_GetGlobalMouseState() which didn't do the right thing on my setup.
- Added code to populate (and log out) DisplayMetrics with monitor info, so Slate can position windows better.

[CL 2315517 by Dmitry Rekman in Main branch]
2014-10-01 01:01:28 -04:00
Dmitry Rekman
b0c60d572f Remove extraneous posix_spawn_file_actions_destroy.
- PR #441 by amigo (tracked as TTP #346841).

[CL 2314615 by Dmitry Rekman in Main branch]
2014-09-30 13:48:31 -04:00
Jaroslaw Surowiec
6cf2a72548 CrashReport - Added comment regarding backtrace_symbols
[CL 2314099 by Jaroslaw Surowiec in Main branch]
2014-09-30 07:40:25 -04:00
Jaroslaw Surowiec
95d01040be CrashReport - Fixed bad engine version stored as Parameter0
[CL 2312795 by Jaroslaw Surowiec in Main branch]
2014-09-29 09:10:00 -04:00
Dmitry Rekman
28a44fd8bd Fix offset in ReceiveHitBoxClick event (TTP #331994).
- Y position was still offset when receiving OnMovedWindow.

[CL 2310673 by Dmitry Rekman in Main branch]
2014-09-25 23:04:08 -04:00
Dmitry Rekman
f35a7d1cd1 Linux: changes to platform window handling (TTP #331994).
- Properly accounting for window decorations.
- Window activation happens on click now, not on window entry/leave.
- Alas, a minor hack in MenuAnchor to tentatively set cached position (needs to be fixed, see TTP #347674).

#codereview Nick.Atamas, Josh.Adams

[CL 2309395 by Dmitry Rekman in Main branch]
2014-09-25 02:39:12 -04:00
Max Preussner
121fccd2ab Code and documentation cleanup pass
- removed dummy UClasses (no longer needed)
- removed file header comments (not used)
- removed duplicated function documentation in cpp files
- documentation cleanup, punctuation, spelling etc.
- pragma once include guards (now work on all platforms)
- relative public includes (are auto-discovered by UBT)
- fixed too many/too few line breaks
- deleted empty files
- missing override
- NULL to nullptr

[CL 2305058 by Max Preussner in Main branch]
2014-09-21 20:35:48 -04:00
Olaf Piesche
c8db055a2a implementing missing platformprocess functionality
#codereview dmitry.rekman

[CL 2304968 by Olaf Piesche in Main branch]
2014-09-21 20:35:15 -04:00
Dmitry Rekman
73ec98fb08 Fixing COLOR_RED collision.
- Taken from PR #452 by salamanderrake & amigo.

[CL 2303678 by Dmitry Rekman in Main branch]
2014-09-19 01:31:37 -04:00
Dmitry Rekman
89f0b7cdd9 SDL2 changes.
- Get rid of dynamic lib and only build static ones (with -fPIC, too).
- Extend the library with a flag that allows "utility" windows (currently specific to X11 and uses different window type, as _SKIP_TASKBAR state is apparently ignored by KWin).
- Make tooltip/etc windows use the above flag.

[CL 2302731 by Dmitry Rekman in Main branch]
2014-09-18 13:44:47 -04:00
Dmitry Rekman
d7008b343a Fix popup menus in UT.
[CL 2294453 by Dmitry Rekman in Main branch]
2014-09-11 20:46:14 -04:00
Dmitry Rekman
2bae5d805f Fixing cross-compilation of the editor target for Linux.
- Ugly hack to get obsolete GL stuff compiled for splash.
- LND binary added to noredist folder for now.
- A lot of pre-built binaries built on added.

[CL 2292785 by Dmitry Rekman in Main branch]
2014-09-10 15:03:57 -04:00
Jaroslaw Surowiec
70e49bdfa1 CrashReport - Removed verbosity flags, we most of the time display all data, removed duplicated FProgramCounterSymbolInfo, partially switched to unified ProgramCounterToHumanReadableString
#codereview Robert.Manuszewski

[CL 2290682 by Jaroslaw Surowiec in Main branch]
2014-09-09 12:16:55 -04:00
Jaroslaw Surowiec
06f06622d8 CrashReport - GetEngineMode moved to FPlatformMisc, removed duplicates
#codereview Robert.Manuszewski

[CL 2286144 by Jaroslaw Surowiec in Main branch]
2014-09-05 07:54:53 -04:00
Dmitry Rekman
466a56c8af More correct setting of window flags (PR #404).
- Contributed by amigo.
- Does not change the behavior though.

[CL 2281859 by Dmitry Rekman in Main branch]
2014-09-02 15:22:03 -04:00
Dmitry Rekman
b71df5666f Better handling of child processes when compiling shaders.
- Shader compiler manager now uses handles instead of PIDs (PIDs have numerous problems - can come and go without us noticing, can be reused, making us wait for a wrong process, have to be wait()ed for on Unix).
- Also, sprinkled handle closing logic into SCM code. SCM should be refactored to treat created processes like opened files and do not hold on to their handles indefinitely, but current code works too.
- A method to dispose of process handles added (CloseProc(), matching CreateProc()).
- Linux specific: IsProcRunning() will now wait() if it detects that child is a zombie, to allow higher level code holding on to process handles of no longer running processes without taking kernel resources.

#codereview Josh.Adams, Michael.Trepka, Jaroslaw.Surowiec, Rolando.Caloca, Marcus.Wassmer

[CL 2280961 by Dmitry Rekman in Main branch]
2014-09-02 01:03:18 -04:00
Dmitry Rekman
fa548da105 Graceful handling of PlatformInitMultimedia failure.
Headless programs (servers) may want to throw message boxes. Without this change, they would be failing early attempting to initialize SDL for that purpose (this actually happened when a plugin was missing from a server build), and the error message about SDL initialization failure is unhelpful to pinpoint the actual problem.

[CL 2277213 by Dmitry Rekman in Main branch]
2014-08-29 01:17:42 -04:00
Dmitry Rekman
88db3fbc29 Removing modules from Linux server for reals.
(File missed CL 2276426 :/ ).

[CL 2277178 by Dmitry Rekman in Main branch]
2014-08-29 00:37:32 -04:00
Graeme Thornton
a2720ee3b8 Moved GetDisplayMetrics from the application object to a static method on FDisplayMetrics.
- Allows access to display metrics before application object has been initialized, which is necessary to allow the game user settings preload function to correctly determine the right startup resolution for fullscreen modes.

Set fortnite default video mode to be windowed fullscreen

[CL 2264092 by Graeme Thornton in Main branch]
2014-08-20 08:32:07 -04:00
Dmitry Rekman
b3ab32f8fb Changes in platform initialization/teardown.
- New PlatformTearDown() function to correspond to PlatformInit(), called at AppExit() time (unguarded code).
- Linux-specific PlatformInitMultimedia() function (not part of generic platform abstraction) which handles multiple initialization of SDL and/or avoids it for certain targets.
- Fixes problem with SDL message box destroying SDL and ruining things later down the road.

#codereview Josh.Adams, Ankit.Khare, Michael.Trepka, Marcus.Wassmer, Pete.Knepley, Graeme.Thornton

[CL 2263609 by Dmitry Rekman in Main branch]
2014-08-19 22:04:56 -04:00