Julien Danjou
c6eec955c8
Rename Area to area_t
2008-03-23 15:52:18 +01:00
Julien Danjou
0bde5c9e29
Move some screen functions from screen.c to new common/xscreen.c
2008-03-23 15:52:17 +01:00
Julien Danjou
0cd969bfb9
Split screen_build_screen() into more generic code and type: screeninfos_new()
2008-03-23 15:52:17 +01:00
Julien Danjou
960d870b0b
fix screen_get_bycoord()
2008-02-25 13:40:30 +01:00
Julien Danjou
606d157e31
rename some screens function
2008-01-30 09:36:52 +01:00
Julien Danjou
ab8d95f13d
rework include
2008-01-29 11:27:14 +01:00
Julien Danjou
d17c5c531e
detect clone screens (FS#42)
2008-01-22 20:41:10 +01:00
Julien Danjou
4f65aa8f51
rework headers inclusion
2008-01-01 18:02:36 +01:00
Julien Danjou
909f92d500
replace UICB_PROTO macro by a typedef
2008-01-01 17:25:48 +01:00
Julien Danjou
3d71a2e9a4
merge draw_get_image_{width,height}() into draw_get_image_size()
2007-12-29 21:44:44 +01:00
Julien Danjou
a981d984a2
remove ScreenInfo typedef and move Area into screen.h
2007-12-23 09:55:46 +01:00
Aldo Cortesi
5f079ef73e
Clean get_screen_info and get_display_info.
...
Besides making these functions much nicer to use, this fixes a number of
things:
- Clients now don't have to free the returned structures.
- The ScreenInfo allocated by XineramaQueryScreens should be freed with XFree,
not p_delete.
This patch also introduces an abstract Area type that will be very useful.
2007-12-23 09:53:50 +01:00
Aldo Cortesi
ce556ec743
The preferred line length is 80 characters.
2007-12-18 11:27:26 +01:00
Aldo Cortesi
965cbb7e0b
Continue to simplify interfaces that require arguments in globalconf.
...
Today I focus on screen.c.
2007-12-18 11:26:39 +01:00
Aldo Cortesi
2f74c079aa
Massive, massive interface refactoring.
...
The big change here is that we now keep our configuration structure in a global
variable called globalconf. This radically simplifies many interfaces, since
passing awesomeconf everywhere is no longer necessary. There are also more
subtle interface effects - now we can reliably identify a screen from just a
screen ID, rather than an awesomeconf, screenid tuple.
Overall, this patch makes most of the interfaces in awesome much nicer to use -
enjoy!
Yes, this is a huge patch, but since a lot of the refactoring was done
systematically using vim macros, splitting this up would have been very hard.
2007-12-16 12:12:48 +01:00
Julien Danjou
f92772953c
fix some #include
2007-12-14 16:42:54 +01:00
Julien Danjou
097e8e4172
Add uicb_screen_focus to switch to a specified screen.
2007-12-13 13:59:46 +01:00
Julien Danjou
5fa67c23df
split awesomeconf and screen config
...
a.k.a the big post-2.0 blind commit
2007-12-11 20:56:51 +01:00
Nathan Hüsken
9524f15478
Adding padding
2007-11-28 11:00:48 +01:00
Julien Danjou
7c533b8b40
rename screen uicb correctly
2007-11-14 18:16:43 +01:00
Julien Danjou
a74ca1d1de
tabswidth is 4 not 6
2007-10-15 13:56:24 +02:00
Julien Danjou
4e0acfa99a
add coding style stuff
2007-10-15 13:40:52 +02:00
Julien Danjou
97a2085705
cosmetic: remove lines with empty spaces at end
2007-10-03 17:26:14 +02:00
Julien Danjou
950605b1a0
simplify get_screen_info()
2007-10-01 20:58:29 +02:00
Julien Danjou
8c531e2a81
store phys_screen
2007-10-01 15:23:05 +02:00
Julien Danjou
7beabd32d3
enhance windows screen moving when windows are floating
2007-09-28 16:40:20 +02:00
Julien Danjou
d4211d3bfb
introduce get_real_scree()
2007-09-28 11:36:39 +02:00
Julien Danjou
8112ec2cca
introduce move_client_to_screen to move a client in a new screen and tag it with good tags
2007-09-28 11:30:51 +02:00
Julien Danjou
ca363aa248
add uicb_movetoscreen()
2007-09-27 22:29:09 +02:00
Julien Danjou
14da15bbc9
make Statusbar optional in get_display_info()
2007-09-27 20:16:20 +02:00
Julien Danjou
4662cf109e
introduce get_screen_count(...) function
2007-09-27 17:13:30 +02:00
Julien Danjou
ca16334351
introduce get_xinerama_screen_bycoord(...)
...
this allows to retrieve the xinerama screen of a client with its coordinates
2007-09-27 17:13:30 +02:00
Julien Danjou
c8373622ec
Add UICB_PROTO to common.h (new) to declare uicb_functions
2007-09-24 14:40:40 +02:00
Julien Danjou
32654ce496
new feature: add focus{next,prev}screen ui_callback functions
...
this allows to switch focused screen in multi-head (zaphod) mode
2007-09-24 14:21:49 +02:00
Julien Danjou
f4cb327f6d
get_screen_info get screen as arg
2007-09-15 23:09:02 +02:00
Julien Danjou
e4e8a2966f
get_display_info take screen and screen is stored in statusbar struct
2007-09-15 23:04:04 +02:00
Julien Danjou
59c870db3e
add get_display_info function to screen.c and use it for getting windows_area geom
2007-09-14 11:55:56 +02:00
Julien Danjou
c7735d4d1f
add screen.[ch] to handle Xinerama config, and deprecate get_wa*()
2007-09-14 11:35:40 +02:00