Uoti Urpala
77ec83e351
Add a context for mp_fifo
...
Store data in an allocated context and take it as an argument instead
of using static variables.
2008-04-29 15:36:51 +03:00
Uoti Urpala
db8924ea3c
Move mRootWin,mScreen,mLocalDisplay to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
0ef3e9ae87
Move vo_mouse_autohide,vo_wm_type,vo_fs_type,vo_fs_flip to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
cc8334710e
x11_common: Move vo_old_[x|y|width|height| to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
52b3c6097b
x11_common.c: Move orig_layer and old_gravity to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
49ac1f06ca
Move static mouse hide timers to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
49461e04d0
Move vo_gc,f_gc,vo_hints to x11 struct
2008-04-23 13:47:43 +03:00
Uoti Urpala
5f39342e01
x11_common.c: Move function-static variables to struct
2008-04-23 13:47:42 +03:00
Uoti Urpala
dd784ca408
Mark a table const
2008-04-23 13:47:42 +03:00
Uoti Urpala
e66e17adc1
Move xv_port,xv_colorkey,xv_ck_info to x11 struct
2008-04-23 13:47:35 +03:00
Uoti Urpala
40f02f64fd
Move vo_window to x11 struct
2008-04-23 13:46:40 +03:00
Uoti Urpala
7159af499c
Move static X11 atoms to struct
2008-04-23 13:46:40 +03:00
Uoti Urpala
78172918ff
Move vo_screenwidth,vo_screenheight to options struct
2008-04-23 13:46:40 +03:00
Uoti Urpala
432e8ff4a5
Move vo_depthonscreen to x11 struct
2008-04-23 13:46:40 +03:00
Uoti Urpala
eaab1ce896
Move vo_dx,vo_dy,vo_dwidth,vo_dheight to vo struct
2008-04-23 13:46:40 +03:00
Uoti Urpala
26039a38e3
Move global mDisplay to x11 state struct
2008-04-23 13:46:34 +03:00
Uoti Urpala
acf319b3ed
Create a struct for X11 state
...
Will be used for common data between X11 VOs. The main reasons for
making it a separate struct rather than extra fields in the main VO
struct are that some field definitions need X headers and that the code
keeps basic X state such as the display connection over opening and
closing of individual VOs.
2008-04-23 13:41:07 +03:00
Uoti Urpala
d283d5236a
x11_common.c: Make some functions static
2008-04-23 13:41:06 +03:00
Uoti Urpala
bfe569b76e
Move vo_ontop to options struct
...
Add a 'struct vo *vo' argument to the x11_common.c functions that
access the variable so it's available as vo->opts->vo_ontop. To keep
VOs using the old API working create a global vo variable that is set
to the currently used old vo. "vo_ontop" will be #defined to
"global_vo->opts->vo_ontop", and x11_common.h will add defines like
the following when it is included by old VOs:
#define vo_x11_ontop() vo_x11_ontop(global_vo)
so that they will call the function according to the new declaration.
2008-04-23 13:41:06 +03:00
attila
530df550e4
revert commits 26437-26439
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26468 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-19 09:58:01 +00:00
attila
d08bf2fc44
cosmetics: fix indentation
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26439 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-13 11:15:08 +00:00
attila
f5ccd50211
move the #ifdef HAVE_XINERAMA to enclose the whole function
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26438 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-13 11:12:24 +00:00
attila
d48f39e68c
Always calculate the xinerama screen mplayer is on.
...
Bug reported by thomas.lindroth(<at>)gmail.com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26437 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-13 11:08:59 +00:00
diego
835c654bb0
typo fix: inited --> initialized
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-14 14:23:55 +00:00
reimar
a84db25ae4
Use a transform_color function to reduce code duplication
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25702 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 16:30:41 +00:00
uau
b5aa5692cd
Remove unnecessary <signal.h> includes
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:49 +00:00
reimar
91ba3d6531
Remove some now unused screensaver stuff code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25638 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 12:22:03 +00:00
reimar
3259a15f61
Remove most of the messy screensaver code in favour of only XResetScreenSaver
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25637 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 12:18:27 +00:00
reimar
f9b1151801
Use a screensaver_off variable to save current state and avoid
...
uselessly disabling twice.
Also needed for a future patch.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25636 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 12:18:17 +00:00
reimar
36928c82e1
Add missing X11/extensions/scrnsaver.h include
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25510 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-22 18:51:05 +00:00
reimar
defbb2a545
Add support for XScreenSaverSuspend
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25494 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-22 11:09:43 +00:00
reimar
885bc7c7e1
Move more variables into the block where they are used
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25476 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 12:57:36 +00:00
reimar
a3816c913b
Move a variable to where it is used
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25475 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 12:51:24 +00:00
uau
5bfedc0a2d
Remove some pointless 'inline' qualifiers
...
Most of these functions aren't even used in the same translation unit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24918 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-01 06:52:10 +00:00
diego
b13b7a54c2
Allow XF86AudioLowerVolume/XF86AudioRaiseVolume keys to be handled by MPlayer.
...
patch by Michael Mauch, michael.mauch gmx de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24343 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-05 11:09:25 +00:00
reimar
a522f65ac2
Remove checks that in the worst case will completely break fullscreen
...
switching. If they are needed for something they must be done in
a more robust way.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24333 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-03 08:36:27 +00:00
reimar
5bf1615eba
Make sure aspect hint is adjusted on aspect change
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24332 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-03 08:33:35 +00:00
reimar
33f62a7510
Cosmetics: set vo_hint.flags at more consistent places (directly before
...
setting the corresponding values)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24331 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-02 22:09:55 +00:00
reimar
10f6c95996
make sure update_xinerama_info is always called even when using the
...
window-manager fullscreen hint, so that vo_screenwidth/height are right.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23895 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 22:21:29 +00:00
attila
d1f19fc77b
document "default" behaviour if CopyFromParent is passed as colormap
...
to vo_x11_create_vo_window()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23843 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-22 18:31:17 +00:00
reimar
a237b8b6f3
Fix vo_x11_clearwindow_part: x position is one less to avoid not clearing
...
a line in case of rounding error, so width must be one larger, too.
y-case is already correct.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23680 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 13:09:39 +00:00
reimar
f131aafff1
Make X11 window creation and (with -fixed-vo) management simpler and more
...
consistent by introducing a new function that handles most of the
ugly things. Changes of behaviour with some vos is unavoidable, bug reports
welcome.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23675 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 10:26:13 +00:00
reimar
12c23915c9
Add missing return value for x11 error handler
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23635 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 10:46:40 +00:00
diego
5c9abf7f9f
Gui --> gui
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-23 07:42:42 +00:00
uau
208d4343ef
"()" to "(void)" function param list fixes
...
patch from Stefan Huehner, stefan huehner org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-01 21:59:54 +00:00
rathann
259cfbe7e2
Code cleanup: don't include a .c file in mplayer.c and fix a few
...
"implicit declaration of function ‘mplayer_put_key’" warnings
Based on Attila's suggestions.
Approved by Uoti and Ivan.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22841 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-29 17:16:11 +00:00
reimar
ff32ae1051
Move code to ignore mouse wheel "down" events to fifo.c (needed because
...
they too easily cause those "buttons" to get stuck), reducing code duplication.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21982 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 11:05:21 +00:00
diego
fa1c3630e3
grammar/spelling/wording in comments
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21956 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-18 09:03:42 +00:00
reimar
e5e820981f
Do not abort on X11 errors, most are not at all fatal.
...
Makes -vo x11 work over non-trusted ssh X11 forwarding.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21826 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-05 11:57:06 +00:00
reimar
c825b672f5
Get rid of completely useless includes that in addition hinder compilation
...
on MinGW
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21639 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-16 21:24:12 +00:00