summaryrefslogtreecommitdiff
path: root/libwnck/screen.c
Commit message (Collapse)AuthorAgeFilesLines
* screen: move SnDisplay to WnckTasklistAlberts Muktupāvels2022-09-161-41/+0
| | | | Startup notifications are used only in WnckTasklist.
* handle: make it publicAlberts Muktupāvels2022-08-151-10/+18
|
* screen: use WnckHandle to get applicationAlberts Muktupāvels2022-02-241-1/+1
|
* screen: use WnckHandle to get class groupAlberts Muktupāvels2022-02-241-1/+1
|
* screen: use WnckHandle to get windowAlberts Muktupāvels2022-02-241-3/+3
|
* screen: move screens to WnckHandleAlberts Muktupāvels2022-02-221-97/+16
|
* screen: store WnckHandle in structAlberts Muktupāvels2022-02-171-0/+12
| | | | | | | | | | Before 5ab809143a7d commit event filter was added in wnck_screen_get when constructing first screen. Store WnckHandle in WnckScreen struct to ensure that event filter is always added otherwise we might end up without event filter if on startup nothing calls _wnck_get_handle. This change introduces new requirement - wnck_set_client_type must be used before using WnckScreen APIs.
* xutils: move event filter to WnckHandlewip/muktupavels/wnck-handle-2Alberts Muktupāvels2021-05-311-1/+0
| | | | | | The final goal is that all resources are managed by WnckHandle. This will allow to free resources when removing plugin/applet without worrying that it might affect other applets.
* class-group: add WnckScreen to private structAlberts Muktupāvels2019-09-101-1/+1
|
* don't use the deprecated g_type_class_add_privateAlberts Muktupāvels2018-06-271-5/+2
|
* screen: avoid deprecated gdk_display_get_screenAlberts Muktupāvels2017-05-051-1/+4
| | | | GTK+ does not support multiple screens!
* screen: fix signed / unsigned warningsAlberts Muktupāvels2017-05-051-4/+4
|
* add missing default case in switch statementsAlberts Muktupāvels2017-04-271-0/+2
|
* remove redundant declarationsAlberts Muktupāvels2017-04-261-2/+0
|
* screen: Check for Wayland displayOlivier Crête2016-11-281-3/+8
| | | | | | | The current code doesn't check hard enough and segfaults when starting d-feet. https://bugzilla.gnome.org/show_bug.cgi?id=775116
* Updated FSF's addressDaniel Mustieles2014-01-231-3/+1
|
* WnckScreen: remove unneeded priv parameters initialization to 0Marco Trevisan (Treviño)2013-07-201-38/+0
|
* libwnck: remove dependency on glib-genmarshal, use generic marshallerMarco Trevisan (Treviño)2013-07-201-30/+15
|
* core: Also reset the XSelectInput for WnckScreen and WnckApplicationVincent Untz2012-01-301-5/+7
| | | | | We don't want to break apps that have set some specific mask with XSelectInput.
* core: Rely on finalize() instead of manual shutdown() functionsVincent Untz2012-01-301-17/+9
| | | | | | | For WnckScreen and WnckWindow, there was a manual shutdown function called for each object. However, when we shut down, we know that the object will have no reference left and will get finalized. So we can simply rely on the finalize() functions.
* core: Add wnck_shutdown()Martin Pitt2012-01-301-1/+38
| | | | | | | | | | Add wnck_shutdown() method that stops listening to events and tear down all resources from libwnck. This should be done if you are not going to need the state change notifications for an extended period of time, to avoid wakeups with every key and focus event. After this all Wnck object references you might still hold are invalid. https://bugzilla.gnome.org/show_bug.cgi?id=642692
* core: Add API to get WM_CLASS group name & instance name of a WnckWindowMarco Trevisan (Treviño)2011-08-121-1/+1
| | | | | | | | | | | | | The old private getters for getting a window WM_CLASS name or WM_CLASS are now public as wnck_window_get_class_group_name() and wnck_window_get_class_instance_name(). It's important to be able to get the instance name as they could differ for special windows or for sub-applications (i.e. chromium web-apps). Also make wnckprop print out the window class instance. https://bugzilla.gnome.org/show_bug.cgi?id=168718
* core: Add Display argument to _wnck_error_trap_push()/pop()Vincent Untz2011-02-181-6/+9
|
* core: Remove usage of gdk_display_get_default() in screen.cVincent Untz2011-02-181-2/+9
|
* doc: TyposVincent Untz2011-01-201-1/+1
|
* core: Do not use WNCK_SCREEN_XSCREEN in screen.cVincent Untz2011-01-201-20/+17
| | | | We have direct access to the xscreen!
* core: Remove usage of _wnck_get_default_display()...Vincent Untz2011-01-201-6/+3
| | | | ... in wnck_screen_construct().
* core: Add Screen argument to _wnck_select_input()Vincent Untz2011-01-201-1/+2
| | | | | | If we can't find a GdkDisplay matching the Display of the Screen, then we just skip the GDK integration code: using gdk_display_get_default() would be just wrong. And this shouldn't happen anyway.
* core: Add Screen argument to _wnck_set_utf8_list()Vincent Untz2011-01-201-1/+2
|
* core: Add Screen argument to _wnck_get_utf8_list()Vincent Untz2011-01-201-1/+2
|
* core: Add Screen argument to _wnck_get_cardinal_list(), ...Vincent Untz2011-01-201-3/+6
| | | | ... _wnck_get_frame_extents().
* core: Add Screen argument to _wnck_get_window_list()Vincent Untz2011-01-201-2/+4
|
* core: Add Screen argument to _wnck_get_utf8_property()Vincent Untz2011-01-201-2/+6
|
* core: Add Screen argument to _wnck_get_pixmap()Vincent Untz2011-01-201-1/+2
|
* core: Add Screen argument to _wnck_get_window(), _wnck_get_session_id()Vincent Untz2011-01-201-2/+4
|
* core: Add Screen argument to _wnck_get_cardinal(), _wnck_get_pid()Vincent Untz2011-01-201-3/+6
|
* all: Remove deprecated API and change API that had deprecated argumentsVincent Untz2011-01-191-102/+0
| | | | | | | | | | | | | | | | | | The following deprecated API got removed: wnck_screen_get_workspace_index wnck_screen_get_workspace_neighbor wnck_pager_set_screen wnck_tasklist_set_minimum_width wnck_tasklist_get_minimum_width wnck_tasklist_set_minimum_height wnck_tasklist_get_minimum_height wnck_tasklist_set_screen wnck_gtk_window_set_dock_type wnck_create_window_action_menu The following API don't take a WnckScreen argument anymore: wnck_pager_new wnck_tasklist_new
* all: Code spacing fixesVincent Untz2011-01-191-144/+144
|
* [core] Use _wnck_error_trap_push/pop instead of gdk_error_trap_push/popVincent Untz2010-09-131-2/+2
| | | | There was one instance where this was not the case.
* [core, wnckprop] Stop using gdk_displayVincent Untz2010-09-111-10/+25
| | | | | | The gdk_display variable is deprecated. See https://bugzilla.gnome.org/show_bug.cgi?id=629344
* [screen] Wrap gtk-doc commentsVincent Untz2010-08-041-19/+20
|
* Add introspection annotationsTomeu Vizoso2010-07-291-20/+22
|
* undef WNCK_DISABLE_DEPRECATED, since that's internal code.Vincent Untz2009-01-061-0/+2
| | | | | | | | | | | | | 2009-01-06 Vincent Untz <vuntz@gnome.org> * libwnck/pager.c: * libwnck/screen.c: * libwnck/tasklist.c: * libwnck/util.c: * libwnck/window-action-menu.c: undef WNCK_DISABLE_DEPRECATED, since that's internal code. svn path=/trunk/; revision=1695
* return TRUE when both list of windows are empty. Fix a bug where when theVincent Untz2008-06-111-3/+2
| | | | | | | | | | | | | 2008-06-11 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (arrays_contain_same_windows): return TRUE when both list of windows are empty. Fix a bug where when the last window disappears, libwnck internals don't get updated and you still have a window in the window list, eg. See http://code.google.com/p/xmonad/issues/detail?id=195 Patch by Malebria <malebria@riseup.net> svn path=/trunk/; revision=1628
* Change API doc to use Gets instead of Returns in the description of theVincent Untz2007-11-111-22/+22
| | | | | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Change API doc to use Gets instead of Returns in the description of the functions. Fix bug #477847. * libwnck/application.c: * libwnck/class-group.c: * libwnck/screen.c: * libwnck/window.c: * libwnck/workspace.c: svn path=/trunk/; revision=1506
* remove dead conditions. Patch by Roland Bär <roland@verifysoft.de>. FixVincent Untz2007-11-111-6/+4
| | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (update_viewport_settings): remove dead conditions. Patch by Roland Bär <roland@verifysoft.de>. Fix bug #494077. svn path=/trunk/; revision=1504
* use Deprecated:2.20: instead of just Deprecated:Vincent Untz2007-07-101-4/+4
| | | | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * libwnck/pager.c: * libwcnk/screen.[ch]: * libwnck/tasklist.c: * libwnck/util.c: use Deprecated:2.20: instead of just Deprecated: svn path=/trunk/; revision=1409
* add myself add myself for the copyright of relevant filesVincent Untz2007-07-101-0/+1
| | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * AUTHORS: add myself * libwnck/*: add myself for the copyright of relevant files svn path=/trunk/; revision=1408
* call _wnck_error_trap_push() and _wnck_error_trap_pop() (mainly for theVincent Untz2007-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-25 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (wnck_screen_change_workspace_count): call _wnck_error_trap_push() and _wnck_error_trap_pop() (mainly for the XSync() call in _wnck_error_trap_push()) * libwnck/xutils.c: (_wnck_close), (_wnck_keyboard_move), (_wnck_keyboard_size), (_wnck_change_state), (_wnck_change_workspace), (_wnck_activate), (_wnck_activate_workspace), (_wnck_change_viewport), (_wnck_toggle_showing_desktop), (_wnck_gdk_pixbuf_get_from_pixmap), (_wnck_set_window_geometry), (_wnck_free_layout_manager), (_wnck_try_desktop_layout_manager), (_wnck_release_desktop_layout_manager): ditto. This is needed for wnckprop to correctly work. * libwnck/wnckprop.c: (timestamp_predicate), (get_xserver_timestamp): new, stolen from xutils.c (update_screen): we don't need the timestamp here (update_workspace): get a real xserver timestamp (update_window): ditto svn path=/trunk/; revision=1375
* Add new API to get layout information about a workspace. Also add a modeVincent Untz2007-06-241-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> Add new API to get layout information about a workspace. Also add a mode to wnckprop to interact with workspaces. * libwnck/workspace.[ch]: (wnck_workspace_get_layout_row), (wnck_workspace_get_layout_column), (wnck_workspace_get_neighbor): 3 new API, that are useful for knowing more about the layout * libwnck/screen.[ch]: (wnck_screen_get_workspace_neighbor): deprecate this function, wnck_workspace_get_neighbor() is simpler and should be used instead (update_workspace_layout): if the number of rows (or columns) is not set on the screen, compute it using the number of columns (or rows) and the number of workspaces * libwnck/wnckprop.c: (set_mode): new (validate_options): updated (update_screen_props): remove the part about workspace activation (update_space_props): new (print_screen_props): indentation fixes (print_space_props): new (handle_button_press_event): updated (main): updated svn path=/trunk/; revision=1368