Brandon Wright
533f898132
Add get refresh rate context function. Implement for X11 and Wayland.
2018-04-15 17:56:12 -05:00
Brandon Wright
9f15e39114
Also use the original fallback designed for older window managers.
2018-04-02 20:21:32 -05:00
Brandon Wright
0a5e65dc06
Add workarounds based on window manager for override-redirect.
2018-04-02 20:01:14 -05:00
Brandon Wright
64686d8106
Set override-redirect on true fullscreen, but after window is mapped.
2018-04-01 17:47:27 -05:00
Brandon Wright
3bbff3c689
Use _NET_WM_STATE_FULLSCREEN as a first measure, only falling back to override-redirect when not supported.
2018-03-29 17:13:51 -05:00
orbea
2d19885a17
C89_BUILD: Fix some clang compiler errors
...
Fixes the following -Werror warnings with C89_BUILD=1 and clang.
gfx/common/x11_common.c:407:17: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
Status status = 0;
^
libretro-common/formats/libchdr/chd.c:639:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
^
libretro-common/formats/libchdr/chd.c:723:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
^
2018-01-03 16:53:11 -08:00
Alcaro
abf4e50e6d
These warnings aren't needed
2017-12-31 14:33:57 +01:00
twinaphex
c0c9764afe
Update
2017-12-25 07:36:49 +01:00
orbea
1ddcc7be82
Ifdef the broken dbus code better.
2017-12-16 05:19:05 -08:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
q3cpma
6e8fb49d05
Whoops
2017-12-01 00:17:50 +01:00
q3cpma
fa3aab9768
Fixes compilation on FreeBSD (and hopefully on other POSIX platforms)
2017-11-30 16:53:55 +01:00
q3cpma
18b2bd527c
Set _NET_WM_PID
...
Also set WM_CLIENT_MACHINE since https://specifications.freedesktop.org/wm-spec/1.3/ar01s05.html
says you must do so if setting the first.
2017-11-23 19:15:59 +01:00
twinaphex
060753258a
Combine input_driver.c and input_keyboard.c
2017-06-11 17:51:12 +02:00
twinaphex
ddf779008a
Update
2017-05-20 19:48:02 +02:00
twinaphex
5a9dbf7e4f
Merge keyboard files for udev/x11
2017-05-20 19:44:04 +02:00
twinaphex
b0398c1482
C89 build fixes
2017-05-19 03:34:53 +02:00
twinaphex
b97c8a183d
Update log
2017-03-24 01:38:23 +01:00
twinaphex
7579d68272
Cleanups
2017-03-24 00:15:17 +01:00
twinaphex
62aa0c4415
Split up dbus functions into separate file
2017-03-24 00:12:21 +01:00
twinaphex
805470072b
Make desktop_mode a static variable inside x11_common.c
2017-03-23 20:07:56 +01:00
twinaphex
1ce3b12335
Split up xinerama functions into separate files
2017-03-23 19:59:11 +01:00
twinaphex
09e7186a4e
Start splitting up xinerama functions
2017-03-23 19:46:06 +01:00
twinaphex
4c0ce28e6e
(x11_common.c) Cleanups
2017-03-23 19:36:39 +01:00
twinaphex
6247d6ea1d
Update check_window - we no longer need runloop.h inside context driver
2017-01-23 01:02:33 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
6c108a8d27
Shows titlebar text again with X11
2017-01-19 17:58:00 +01:00
Brad Parker
b44c8c9995
store buffer for window title, only update actual title when it changes
2017-01-19 00:33:52 -05:00
twinaphex
34da27c36b
Don't need 'frame_count' variable for check_window
2017-01-18 21:47:12 +01:00
twinaphex
6247e9900b
Remove another header include
2017-01-18 17:46:08 +01:00
twinaphex
a6a4808e94
Refactor frame monitor code
2017-01-18 17:41:27 +01:00
twinaphex
23017e0b45
Cleanups
2017-01-13 16:57:57 +01:00
twinaphex
34d5f609f7
(x11_common.c) Cleanups
2017-01-10 21:54:48 +01:00
twinaphex
36fb6776b2
Don't grab settings pointer in video_monitor_get_fps function
2017-01-09 15:42:14 +01:00
twinaphex
3d92ce140e
Pass video_frame_info_t to update_window_title
2017-01-09 14:42:07 +01:00
twinaphex
77e5cdbfde
Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
...
This reverts commit ad7386913cf2876d2bffd4bedf0284b23f1ed593.
2016-12-22 23:36:11 +01:00
twinaphex
ad7386913c
Rename runloop_msg_queue_push to video_driver_msg_queue_push
...
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex
5ca7344436
Get rid of more implicit memsets
2016-12-19 19:17:23 +01:00
twinaphex
a5d4032d01
(X11) Cleanups
2016-12-15 12:37:14 +01:00
twinaphex
2f171c4b5d
(x11_common.c) Cleanups
2016-12-04 03:39:51 +01:00
twinaphex
c3ab8800f4
Prevent implicit memsets
2016-10-21 05:57:40 +02:00
twinaphex
f75a604ae8
Fix C89_BUILD
2016-10-16 01:51:07 +02:00
Torsten Paul
d4a90f267d
Fix handling of enable flag for xdg-screensaver.
2016-10-10 19:01:41 +02:00
twinaphex
91b1889873
(X11) Mouse input is no longer registered when we are on the
...
titlebar of the window or we are no longer inside the window
2016-10-03 06:50:00 +02:00
twinaphex
7bd38d93f0
(X11) Cleanup x11_alive
2016-10-01 12:12:58 +02:00
twinaphex
cb17c0f493
Style nits
2016-09-16 13:31:18 +02:00
Bastien Nocera
5afdd35e54
x11: Only call out to xdg-screensaver when D-Bus failed
2016-09-16 13:03:48 +02:00
Bastien Nocera
a061b4a801
x11: Implement xdg-screensaver uninhibition
2016-09-16 13:03:37 +02:00
Bastien Nocera
e563bd5512
x11: Flatten D-Bus (un)inhibit functions
...
Instead of nesting, try to exit as soon as possible in case of errors.
Also make sure to tell the caller whether the call succeeded and a
fallback should be attempted.
2016-09-16 12:59:16 +02:00
Bastien Nocera
297c9a8613
x11: Reset dbus_connection global variable on exit
...
To ensure that the state of the variable is correct. This won't be
needed if X11 is never reinitialised.
2016-09-16 12:34:15 +02:00