summaryrefslogtreecommitdiff
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* netwm: Do not use _NET_WM_PING in multi-screenOlivier Fourdan2021-02-022-0/+10
| | | | | | | | | | | | | | GDK dropped support for multi-screen several years ago. Unfortunately, the code in GDK's _gdk_wm_protocols_filter() checks for the default root window when dealing with _NET_WM_PING messages, and that will cause an event loop when trying to use it on a multi-screen setup. Avoid the issue by not using _NET_WM_PING on multi-screen setups. Signed-off-by: Olivier Fourdan <fourdan@xfce.org> Closes:https://gitlab.xfce.org/xfce/xfwm4/-/issues/506
* common: Avoid zero refresh rate for monitorOlivier Fourdan2020-12-211-2/+10
| | | | | | | | | | | | | | The function gdk_monitor_get_refresh_rate() can return 0 if there is no real monitor attached (as with Xephyr or VNC for example). The compositor use the value as a divisor to compute the frequency of refresh when zooming, and if the value is 0, xfwm4 will crash with a floating point exception (division by zero error). Make sure we return something even if gdk_monitor_get_refresh_rate() cannot get us a real refresh rate. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
* build: Increase GTK+ requirement to 3.22Dridi Boukelmoune2020-12-161-32/+0
| | | | | | | | | Since 4.14 this is the minimum version for all of Xfce, which allows to remove a bunch of dead code. Refs !3 Signed-off-by: Dridi Boukelmoune <dridi@fedoraproject.org>
* common: Add a xfwm_monitor_is_primary functionDridi Boukelmoune2020-07-252-0/+22
| | | | | | It's a shorthand for gdk_monitor_is_primary when working from a screen. Signed-off-by: Dridi Boukelmoune <dridi@fedoraproject.org>
* common: There might be no primary monitorOlivier Fourdan2019-08-282-2/+13
| | | | | | | | | | | | | | Bug: 15852 The function `xfwm_get_primary_monitor_geometry()` assumes there is always a primary monitor, which is not true if no monitor is connected, in which case the size is not meaningful. Make `xfwm_get_primary_monitor_geometry()` return a boolean value that can be used by the caller to determine if the reported size is meaningless. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
* Use device geometry for primary monitorViktor Odintsev2019-05-302-15/+35
| | | | | | `xfwm_get_primary_monitor_geometry` returns logical dimensions instead of device dimensions, which leads to incorrect `_NET_WORKAREA` calculation.
* common: Add API to get the refresh rate.Olivier Fourdan2019-05-122-0/+20
| | | | | | | | | Bug 15391 Return the primary monitor refresh rate in Hertz if available from GDK, or 60 as the default value. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
* tabwin: Place tabwin in center when display is scaledJonas Zetterberg2018-12-092-8/+12
| | | | | | | | | | | | Bug: 14931 On scaled display the tabwin is using unscaled window coordinates to calculate its position. Let the callert choose scaled or unscaled display size and use scaled in tabwin. fixes: 9d5ac6a4 Introduce xfwm-common static library Signed-off-by: Jonas Zetterberg <jozz@jozz.se>
* common: Convert monitor geometry to device geometryOlivier Fourdan2018-07-311-0/+8
| | | | | | | | | | | | Bug: 14566 `xfwm_get_monitor_geometry()` uses `gdk_monitor_get_geometry()` which returns the monitor geometry ion logical coordinates, not device coordinates. Apply the scale back to the geometry to get the device pixels. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
* Remove deprecated gdk_screen_make_display_nameViktor Odintsev2017-07-022-0/+39
|
* Handle GDK display/screen/monitor deprecationsViktor Odintsev2017-07-022-0/+60
|
* Introduce xfwm-common static libraryViktor Odintsev2017-07-023-0/+126
|
* Updated i18n stuff (libxfce4util now provides a i18n.h).Benedikt Meurer2003-04-023-359/+0
| | | | | | | | | updated X11.m4 updated xfwm4 to compile well with -Werror -Wall updated xfce-mcs-plugins and added a hint to the README for XFree86 users (Old svn revision: 11031)
* Major autostuff update.Benedikt Meurer2003-03-171-13/+28
| | | | (Old svn revision: 10992)
* Fix initial placementOlivier Fourdan2003-02-281-1/+0
| | | | | | | Fix deprecated gtk_widget_set_usize() (Old svn revision: 10961)
* Apply Benedikt Meurer <Benedikt.Meurer@unix-ag.uni-siegen.de> patchOlivier Fourdan2003-02-261-1/+0
| | | | | | | | Replace all occurences of g_getenv("HOME") with g_get_home_dir() Regenerate all Makefiles.on and configure scripts (Old svn revision: 10952)
* Add startup notification support (from freedesktop.org standard)Olivier Fourdan2003-02-091-0/+2
| | | | (Old svn revision: 10908)
* Update MakefilesOlivier Fourdan2003-01-271-0/+1
| | | | (Old svn revision: 10872)
* Add German translation from MisterMoe <MisterMoe@hackerboard.de> and Michael ↵Olivier Fourdan2003-01-251-38/+101
| | | | | | Jakl <mj@int-x.org> (Old svn revision: 10866)
* added mexican spanish filesEdscott Wilson2003-01-241-101/+38
| | | | (Old svn revision: 10865)
* Mix tweakingsOlivier Fourdan2003-01-232-0/+2
| | | | (Old svn revision: 10859)
* Update autogen.sh script,Olivier Fourdan2003-01-222-29/+42
| | | | | | | | | | Add internationalization support Add french locale Add dependency on libxfcegui4 v .14 Other stuff I don't remember :) (Old svn revision: 10854)
* *** empty log message ***Olivier Fourdan2003-01-213-0/+328
(Old svn revision: 10852)