[gnome-panel/wip-format: 9/18] multiscreen: reformat code
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-format: 9/18] multiscreen: reformat code
- Date: Tue, 25 Feb 2020 19:48:26 +0000 (UTC)
commit 8239bcd878f424c6e3557448d07787ef4abd4f30
Author: Sebastian Geiger <sbastig gmx net>
Date: Tue Feb 25 11:50:58 2020 +0100
multiscreen: reformat code
gnome-panel/panel-multiscreen.c | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index b7f05920d..c1a7f55c0 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -413,28 +413,29 @@ panel_multiscreen_queue_reinit (void)
static void
panel_multiscreen_init_randr (GdkDisplay *display)
{
- Display *xdisplay;
- int event_base, error_base;
+ Display *xdisplay;
+ int event_base, error_base;
- have_randr = FALSE;
- have_randr_1_3 = FALSE;
+ have_randr = FALSE;
+ have_randr_1_3 = FALSE;
- xdisplay = GDK_DISPLAY_XDISPLAY (display);
+ xdisplay = GDK_DISPLAY_XDISPLAY (display);
- /* We don't remember the event/error bases, as we expect to get "screen
- * changed" events from GdkScreen instead.
- */
+ /* We don't remember the event/error bases, as we expect to get "screen
+ * changed" events from GdkScreen instead.
+ */
+ if (XRRQueryExtension (xdisplay, &event_base, &error_base))
+ {
+ int major, minor;
- if (XRRQueryExtension (xdisplay, &event_base, &error_base)) {
- int major, minor;
+ XRRQueryVersion (xdisplay, &major, &minor);
- XRRQueryVersion (xdisplay, &major, &minor);
- if ((major == 1 && minor >= 2) || major > 1)
- have_randr = TRUE;
+ if ((major == 1 && minor >= 2) || major > 1)
+ have_randr = TRUE;
- if ((major == 1 && minor >= 3) || major > 1)
- have_randr_1_3 = TRUE;
- }
+ if ((major == 1 && minor >= 3) || major > 1)
+ have_randr_1_3 = TRUE;
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]